Line data Source code
1 : /**
2 : * @file TextGameObject.h
3 : * @brief text based game object.
4 : *
5 : * Text game object.
6 : */
7 : #ifndef _TEXT_GAME_OBJECT_H_
8 : #define _TEXT_GAME_OBJECT_H_
9 :
10 : #include "constants.h"
11 : #include "Object.h"
12 : #include <string>
13 :
14 : class TextGameObject : public Object {
15 : public:
16 : TextGameObject();
17 :
18 0 : void printTypeName() { PRINT_DEBUG("text\n"); }
19 : void buildLuaObjectTable(lua_State *L);
20 : void transferLuaObjectTable(lua_State *L);
21 :
22 : void draw(Object*);
23 0 : void drawOutline(Object*) {};
24 0 : void drawShadow(Vector*) {};
25 :
26 0 : void handleCollision(Object*) {};
27 0 : void update(Vector*) {};
28 : void prepare() {};
29 : void animate(const float&, Object*); // Camera*
30 :
31 : std::string text;
32 : float color[4];
33 : float width;
34 : float fadeRate;
35 :
36 : static void render_string(void*, const char*);
37 : static void displayText(const char *, const float&, const float&, const float&, const float&, const float&);
38 : };
39 :
40 : #endif
|