Line | |
---|
1 | // |
---|
2 | // Neercs |
---|
3 | // |
---|
4 | // Copyright: (c) 2012 Sam Hocevar <sam@hocevar.net> |
---|
5 | // |
---|
6 | |
---|
7 | #if !defined __NEERCS_H__ |
---|
8 | #define __NEERCS_H__ |
---|
9 | |
---|
10 | #include <caca.h> |
---|
11 | |
---|
12 | #include "video/render.h" |
---|
13 | |
---|
14 | class Neercs : public WorldEntity |
---|
15 | { |
---|
16 | public: |
---|
17 | Neercs(); |
---|
18 | virtual ~Neercs(); |
---|
19 | |
---|
20 | char const *GetName() { return "<neercs>"; } |
---|
21 | |
---|
22 | int hex_color(float r, float g, float b); |
---|
23 | |
---|
24 | protected: |
---|
25 | virtual void TickGame(float seconds); |
---|
26 | virtual void TickDraw(float seconds); |
---|
27 | |
---|
28 | private: |
---|
29 | bool m_ready; |
---|
30 | caca_canvas_t *m_caca; |
---|
31 | Render *m_render; |
---|
32 | float m_time; |
---|
33 | }; |
---|
34 | |
---|
35 | #endif // __NEERCS_H__ |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.