My Project
 
Loading...
Searching...
No Matches
dangerindicator.h
Go to the documentation of this file.
1#pragma once
2
3#include "tag.h"
4
5class BitmapText;
6class Image;
7
8class DangerIndicator :public Tag{
9public:
10 static const int COLOR = 0xFF4C4C;
11
12private:
13 BitmapText* number;
14 Image* icon;
15
16 int enemyIndex = 0;
17
18 int lastNumber = -1;
19
20 void placeNumber();
21public:
23 virtual void update();
24protected:
25 virtual void createChildren();
26 virtual void layout();
27 virtual void onClick();
28};
static const int COLOR
Definition dangerindicator.h:10
virtual void onClick()
Definition dangerindicator.cpp:74
virtual void createChildren()
Definition dangerindicator.cpp:55
virtual void update()
Definition dangerindicator.cpp:29
DangerIndicator()
Definition dangerindicator.cpp:16
virtual void layout()
Definition dangerindicator.cpp:64
Tag(int color)
Definition tag.cpp:20