My Project
 
Loading...
Searching...
No Matches
buffindicator.h
Go to the documentation of this file.
1#pragma once
2
3#include "component.h"
4
5#include <map>
6
7class SmartTexture;
8class TextureFilm;
9class Char;
10class Image;
11
12class BuffIndicator :public Component{
13public:
14 static const int NONE = -1;
15
16 static const int MIND_VISION = 0;
17 static const int LEVITATION = 1;
18 static const int FIRE = 2;
19 static const int POISON = 3;
20 static const int PARALYSIS = 4;
21 static const int HUNGER = 5;
22 static const int STARVATION = 6;
23 static const int SLOW = 7;
24 static const int OOZE = 8;
25 static const int AMOK = 9;
26 static const int TERROR = 10;
27 static const int ROOTS = 11;
28 static const int INVISIBLE = 12;
29 static const int SHADOWS = 13;
30 static const int WEAKNESS = 14;
31 static const int FROST = 15;
32 static const int BLINDNESS = 16;
33 static const int COMBO = 17;
34 static const int FURY = 18;
35 static const int HEALING = 19;
36 static const int ARMOR = 20;
37 static const int HEART = 21;
38 static const int LIGHT = 22;
39 static const int CRIPPLE = 23;
40 static const int BARKSKIN = 24;
41 static const int IMMUNITY = 25;
42 static const int BLEEDING = 26;
43 static const int MARK = 27;
44 static const int DEFERRED = 28;
45 static const int VERTIGO = 29;
46 static const int RAGE = 30;
47 static const int SACRIFICE = 31;
48
49 static const int SIZE = 7;
50
51private:
52 static BuffIndicator* heroInstance;
53
54 SmartTexture* texture;
55 TextureFilm* film;
56
57 std::map<int,Image*> icons;
58
59 Char* ch;
60
61public:
63
64 virtual void destroy();
65
66 static void refreshHero();
67protected:
68 virtual void createChildren();
69 virtual void layout();
70};
71
static const int BARKSKIN
Definition buffindicator.h:40
static const int FURY
Definition buffindicator.h:34
static const int COMBO
Definition buffindicator.h:33
static const int AMOK
Definition buffindicator.h:25
static const int FIRE
Definition buffindicator.h:18
static const int BLEEDING
Definition buffindicator.h:42
static const int FROST
Definition buffindicator.h:31
static const int LEVITATION
Definition buffindicator.h:17
static const int SLOW
Definition buffindicator.h:23
static const int TERROR
Definition buffindicator.h:26
static const int STARVATION
Definition buffindicator.h:22
static const int HUNGER
Definition buffindicator.h:21
static const int RAGE
Definition buffindicator.h:46
static const int SHADOWS
Definition buffindicator.h:29
static const int OOZE
Definition buffindicator.h:24
static const int INVISIBLE
Definition buffindicator.h:28
static const int BLINDNESS
Definition buffindicator.h:32
static const int HEALING
Definition buffindicator.h:35
static const int IMMUNITY
Definition buffindicator.h:41
static void refreshHero()
Definition buffindicator.cpp:34
virtual void createChildren()
Definition buffindicator.cpp:42
static const int SACRIFICE
Definition buffindicator.h:47
static const int WEAKNESS
Definition buffindicator.h:30
static const int MIND_VISION
Definition buffindicator.h:16
BuffIndicator(Char *ch)
Definition buffindicator.cpp:14
static const int MARK
Definition buffindicator.h:43
static const int NONE
Definition buffindicator.h:14
static const int SIZE
Definition buffindicator.h:49
static const int HEART
Definition buffindicator.h:37
static const int VERTIGO
Definition buffindicator.h:45
static const int LIGHT
Definition buffindicator.h:38
virtual void layout()
Definition buffindicator.cpp:63
static const int ROOTS
Definition buffindicator.h:27
static const int CRIPPLE
Definition buffindicator.h:39
static const int DEFERRED
Definition buffindicator.h:44
virtual void destroy()
Definition buffindicator.cpp:25
static const int POISON
Definition buffindicator.h:19
static const int ARMOR
Definition buffindicator.h:36
static const int PARALYSIS
Definition buffindicator.h:20
Definition char.h:9