Last change
on this file since 1588 was
1462,
checked in by sam, 11 years ago
|
neercs: use a libcaca canvas instead of a character string.
|
File size:
517 bytes
|
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 | protected: |
---|
23 | virtual void TickGame(float seconds); |
---|
24 | virtual void TickDraw(float seconds); |
---|
25 | |
---|
26 | private: |
---|
27 | bool m_ready; |
---|
28 | caca_canvas_t *m_caca; |
---|
29 | Render *m_render; |
---|
30 | float m_time; |
---|
31 | }; |
---|
32 | |
---|
33 | #endif // __NEERCS_H__ |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.