forked from YutaTachibana0310/SankouGoudou2019Summer
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnemyBullet.h
45 lines (37 loc) · 937 Bytes
/
EnemyBullet.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
//=====================================
//
//エネミーバレットヘッダ[EnemyBullet.h]
//Author:GP12B332 21 立花雄太
//
//=====================================
#ifndef _ENEMYBULLET_H_
#define _ENEMYBULLET_H_
#include "main.h"
#include "Framework\BoardPolygon.h"
/**************************************
マクロ定義
***************************************/
#define RESOURCE_ENEMYBULLET_TAG ("EnemyBullet")
class EnemyBulletTrailEmitter;
/**************************************
クラス定義
***************************************/
class EnemyBullet
{
public:
EnemyBullet();
~EnemyBullet();
void Init(D3DXVECTOR3 setPos, D3DXVECTOR3 target, int reachFrame, const D3DXVECTOR3& scale = D3DXVECTOR3(1.0f, 1.0f, 1.0f));
void Uninit();
void Update();
void Draw();
Transform transform;
bool active;
private:
int cntFrame;
BoardPolygon *polygon;
D3DXVECTOR3 targetPos;
D3DXVECTOR3 velocity;
EnemyBulletTrailEmitter *trail;
};
#endif