Krig Game Engine
Loading...
Searching...
No Matches
TextGameObject.h
Go to the documentation of this file.
1
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
14class TextGameObject : public Object {
15 public:
16 TextGameObject();
17
18 void printTypeName() { PRINT_DEBUG("text\n"); }
19 void buildLuaObjectTable(lua_State *L);
20 void transferLuaObjectTable(lua_State *L);
21
22 void draw(Object*);
23 void drawOutline(Object*) {};
24 void drawShadow(Vector*) {};
25
26 void handleCollision(Object*) {};
27 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
Base game object from which all concrete types are defined.
Definition Vector.h:15