-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEntity.h
40 lines (31 loc) · 1021 Bytes
/
CEntity.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
#pragma once
#include "icomponent.h"
class CEntity :
public IComponent
{
public:
CEntity(void);
virtual ~CEntity(void);
//static methods
static void RegisterComponentType();
static IComponent* CreateMe();
static bool DestroyMe(IComponent*);
//virtual IComponent methods
virtual bool Init(CObjectId, CParameterNode &);
virtual void Deinit();
virtual EComponentTypeId GetComponentTypeId();
virtual void HandleMessage(CObjectId, MessageTypeId );
virtual void Update(IDiceInvaders*);
//cplayer methods
int GetPositionX() const;
int GetPositionY() const;
int GetRadius() const;
void SetPositionX(int);
void SetPositionY(int);
void SetRadius(int);
private:
int mPosX;
int mPosY;
int mRadius;
bool mRight;
};