-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCRender.h
33 lines (27 loc) · 853 Bytes
/
CRender.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
#pragma once
#include "icomponent.h"
#include "DiceInvaders.h"
class CRender :
public IComponent
{
public:
CRender(void);
virtual ~CRender(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*);
//render methods
void GetRenderFile(const char*);
private:
ISprite* mRender;
bool mIsTextVisible;
bool mIsScoreVisible;
void display(int,int);
};