OSDN Git Service

533c899cb195fb204d082b4607ca4686daa50fd6
[proj16/16.git] / src / eng_core.h
1 #ifndef _ENGINE_CORE_H_\r
2 #define _ENGINE_CORE_H_\r
3 \r
4 #include "src\engine.h"\r
5 #include "src\timer.h"\r
6 \r
7 namespace engine {\r
8         class Core\r
9         {\r
10         public:\r
11                 Core();\r
12                 void update();\r
13                 void sound();\r
14                 void graphics();\r
15                 void comm();\r
16                 void ai();\r
17                 engine_message _msg();\r
18                 void run();\r
19                 bool init();\r
20                 void release();\r
21                 void input();\r
22                 void sync();\r
23                 ~Core();\r
24 \r
25         protected:\r
26         private:\r
27                 engine_message msg;
28                 /*std::list<void(Core::*)()> *fp;*/\r
29                 Timer timer;\r
30 //              unsigned char key[256];\r
31                 int frames_per_second;\r
32                 //std::list<void(core::*)()> fp;\r
33 /*              int xxxx = 0;\r
34                 int yyyy = 0;*/\r
35                 int mode;\r
36                 int x;\r
37                 int y;\r
38 \r
39                 // Because we removed the function pointer STL list:\r
40                 bool graphics_flag, comm_flag, release_flag;\r
41         };\r
42 }\r
43 \r
44 #endif/*_ENGINE_CORE_H_*/\r