-
Notifications
You must be signed in to change notification settings - Fork 2
/
EnemyBulletModel.h
55 lines (45 loc) · 1.11 KB
/
EnemyBulletModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//=====================================
//
//エネミーバレットモデルヘッダ[EnemyBulletModel.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _ENEMYBULLETMODEL_H_
#define _ENEMYBULLETMODEL_H_
#include "main.h"
#include "LineTrailModel.h"
#include "TrailCollider.h"
#include <vector>
/**************************************
前方宣言
***************************************/
class EnemyBullet;
class BaseEmitter;
class BoxCollider3D;
/**************************************
クラス定義
***************************************/
class EnemyBulletModel
{
public:
EnemyBulletModel();
~EnemyBulletModel();
void Init(std::vector<D3DXVECTOR3> emitters, LineTrailModel target);
void Init(std::vector<D3DXVECTOR3> emitters, LineTrailModel target, int duration, const D3DXVECTOR3& scale);
void Uninit();
void Update();
void Draw();
void Disable();
bool active;
private:
std::vector<EnemyBullet*> bullets;
int cntFrame;
int reachFrame;
TrailCollider *collider;
BoxCollider3D *colliderR, *colliderL;
D3DXVECTOR3 edgeR, edgeL;
float posZ;
LineTrailModel targetLine;
BaseEmitter* effect;
};
#endif