Last change
on this file since 1661 was
1660,
checked in by sam, 11 years ago
|
neercs: add a way to activate the old neercs code for testing purposes.
|
File size:
709 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 | extern "C" |
---|
15 | { |
---|
16 | #include "old/neercs.h" |
---|
17 | } |
---|
18 | |
---|
19 | class Neercs : public WorldEntity |
---|
20 | { |
---|
21 | public: |
---|
22 | Neercs(int argc, char **argv); |
---|
23 | virtual ~Neercs(); |
---|
24 | |
---|
25 | char const *GetName() { return "<neercs>"; } |
---|
26 | |
---|
27 | int hex_color(float r, float g, float b); |
---|
28 | |
---|
29 | protected: |
---|
30 | virtual void TickGame(float seconds); |
---|
31 | virtual void TickDraw(float seconds); |
---|
32 | |
---|
33 | private: |
---|
34 | bool m_ready; |
---|
35 | caca_canvas_t *m_caca; |
---|
36 | Render *m_render; |
---|
37 | float m_time; |
---|
38 | |
---|
39 | /* Old neercs stuff */ |
---|
40 | char *m_buf; |
---|
41 | struct screen_list *m_screen_list; |
---|
42 | }; |
---|
43 | |
---|
44 | #endif // __NEERCS_H__ |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.