15 #ifndef COMPONENTS_PLAYER_CHARACTER_H_
16 #define COMPONENTS_PLAYER_CHARACTER_H_
18 #include "character.h"
20 #include "components_generated.h"
21 #include "config_generated.h"
22 #include "corgi/component.h"
23 #include "mathfu/constants.h"
24 #include "scene_description.h"
31 const int kMaxAccessories = 15;
35 corgi::EntityRef base_circle;
36 corgi::EntityRef character;
37 corgi::EntityRef accessories[kMaxAccessories];
38 CharacterId character_id;
45 virtual void AddFromRawData(corgi::EntityRef& entity,
const void* data);
46 virtual void UpdateAllEntities(corgi::WorldTime delta_time);
47 virtual void InitEntity(corgi::EntityRef& entity);
48 void set_gamestate_ptr(
GameState* gamestate_ptr) {
49 gamestate_ptr_ = gamestate_ptr;
52 void set_config(
const Config* config) { config_ = config; }
55 void UpdateCharacterFacing(corgi::EntityRef entity);
56 void UpdateCharacterTint(corgi::EntityRef entity);
57 void UpdateUiArrow(corgi::EntityRef entity);
58 void UpdateVisibility(corgi::EntityRef entity);
59 int PopulatePieAccessories(corgi::EntityRef entity,
int num_accessories);
60 int PopulateHealthAccessories(corgi::EntityRef entity,
int num_accessories);
61 Controller::ControllerType ControllerType(
62 const corgi::EntityRef& entity)
const;
63 bool DrawBaseCircle(
const corgi::EntityRef& entity)
const;
65 const Config* config_;
75 #endif // COMPONENTS_PLAYER_CHARACTER_H_
Definition: player_character.h:34
Definition: game_state.h:56
Definition: player_character.h:43