15 #ifndef COMPONENTS_CARDBOARD_PLAYER_H_
16 #define COMPONENTS_CARDBOARD_PLAYER_H_
19 #include "components_generated.h"
20 #include "config_generated.h"
21 #include "corgi/component.h"
22 #include "scene_description.h"
29 const int kMaxHealthAccessories = 3;
32 corgi::EntityRef target_reticle;
33 corgi::EntityRef loaded_pie;
34 corgi::EntityRef health[kMaxHealthAccessories];
35 CharacterId character_id;
40 virtual void AddFromRawData(corgi::EntityRef& entity,
const void* data);
41 virtual void UpdateAllEntities(corgi::WorldTime delta_time);
42 virtual void InitEntity(corgi::EntityRef& entity);
44 void set_gamestate_ptr(
GameState* gamestate_ptr) {
45 gamestate_ptr_ = gamestate_ptr;
47 void set_config(
const Config* config) { config_ = config; }
50 void UpdateTargetReticle(corgi::EntityRef entity);
51 void UpdateLoadedPie(corgi::EntityRef entity);
52 void UpdateHealthAccessories(corgi::EntityRef entity);
53 const Config* config_;
63 #endif // COMPONENTS_CARDBOARD_PLAYER_H_
Definition: cardboard_player.h:31
Definition: game_state.h:56
Definition: cardboard_player.h:38