1 
2 #ifndef GAME_H
3 #define GAME_H
4 
5 #include <stdint.h>
6 
7 // This is the global game logic refresh interval.
8 // All game logic should be refreshed at this rate, including
9 // enemy AI, values processing and audio update.
10 
11 #define GAME_LOGIC_REFRESH_INTERVAL (1.0 / 60.0)
12 
13 struct camera_s;
14 struct entity_s;
15 
16 void Game_InitGlobals();
17 void Game_RegisterLuaFunctions(struct lua_State *lua);
18 int Game_Load(const char* name);
19 int Game_Save(const char* name);
20 
21 void Game_Frame(float time);
22 
23 void Game_Prepare();
24 
25 void Game_ApplyControls(struct entity_s *ent);
26 
27 void Game_PlayFlyBy(uint32_t sequence_id, int once);
28 void Game_SetCameraTarget(uint32_t entity_id);
29 void Game_SetCamera(uint32_t camera_id, int once, int move, float timer);
30 void Game_StopFlyBy();
31 
32 void Cam_PlayFlyBy(struct camera_state_s *cam_state, float time);
33 void Cam_FollowEntity(struct camera_s *cam, struct camera_state_s *cam_state, struct entity_s *ent);
34 
35 #endif
36 
37