-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGoal.h
39 lines (31 loc) · 917 Bytes
/
Goal.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
#include "d3dUtility.h"
#include "Jumper.h"
#include "Status.h"
#include "string"
using std::string;
class Goal
{
protected:
int stage;
float center_x, center_y, center_z;
float m_radius;
string goalImageFileName = string();
IDirect3DTexture9* Tex = nullptr;
LPD3DXMESH _createMappedSphere(IDirect3DDevice9* pDev);
D3DXMATRIX m_mLocal;
D3DMATERIAL9 m_mtrl;
ID3DXMesh* m_pSphereMesh;
public:
Goal(int stage);
virtual ~Goal(void);
bool create(IDirect3DDevice9* pDevice);
void destroy(void);
void draw(IDirect3DDevice9* pDevice, const D3DXMATRIX& mWorld);
bool hasIntersected(Jumper& jumper);
void hitBy(Jumper& jumper);
const D3DXMATRIX& getLocalTransform(void) const;
void setLocalTransform(const D3DXMATRIX& mLocal);
void setPosition(float x, float y, float z);
D3DXVECTOR3 getPosition() const;
float getRadius(void) const;
};