54 SYSTEM_LOG <<
"X Cannot create player '" <<
_playerPrefabName <<
"': no input device available (all joysticks and keyboard already assigned)\n";
73 SYSTEM_LOG <<
"X Player entity missing required input components!\n";
123 if (
binding.controllerID == -1)
135 else if (
binding.controllerID >= 0)
166 SYSTEM_LOG <<
"X VideoGame::RegisterLoadedPlayerEntity: Invalid entity ID\n";
173 SYSTEM_LOG <<
"X Cannot register player entity " << entity <<
": no input device available (all joysticks and keyboard already assigned)\n";
179 SYSTEM_LOG <<
"X VideoGame::RegisterLoadedPlayerEntity: Entity missing PlayerBinding_data component\n";
185 SYSTEM_LOG <<
"X VideoGame::RegisterLoadedPlayerEntity: Entity missing Controller_data component\n";
240 if (
binding.controllerID == -1)
252 else if (
binding.controllerID >= 0)
260 SYSTEM_LOG <<
"-> Player " <<
binding.playerIndex <<
" registered from level (Entity: " << entity <<
")\n";
626 Vector(540.0f, 540.0f, 5.0f),
627 Vector(0.0f, 540.0f, 5.0f),
628 Vector(540.0f, 0.0f, 5.0f),
629 Vector(270.0f, 270.0f, 5.0f)
632 for (
int i = 0;
i < 5; ++
i)
ComponentTypeID GetComponentTypeID_Static()
const EntityID INVALID_ENTITY_ID
EntityID GetCameraEntityForPlayer(short playerID)
void Push(const Message &msg)
static EventQueue & Get()
static int screenWidth
Screen width in pixels.
static int screenHeight
Screen height in pixels.
static PrefabFactory & Get()
Get singleton instance.
EntityID CreateEntity(const std::string &prefabName)
Create an entity using legacy prefab system.
EntityID CreateEntityFromPrefabName(const std::string &prefabName)
Create entity from prefab name.
std::vector< EntityID > m_playersEntity
static short m_playerIdCounter
ViewportManager & viewport
EntityID AddPlayerEntity(string _playerPrefabName="Player")
bool IsInputDeviceAvailable() const
void RegisterLoadedPlayerEntity(EntityID entity)
void InitializeAITestScene()
void SetViewportLayout(short playerID)
virtual void RegisterPrefabItems()
bool RemovePlayerEntity(const EntityID eid)
void Initialize(int w, int h)
bool AddPlayer(short playerID, ViewportLayout viewportLayout)
Core ECS manager and world coordinator.
static World & Get()
Get singleton instance (short form)
bool HasComponent(EntityID entity) const
T & GetComponent(EntityID entity)
void SetState(GameState s)
Header file for PrefabFactory class, responsible for creating game object prefabs.
Identity component for entity identification.
bool isPersistent
Should the entity persist across levels?
static Message Create(EventType _ev_t, EventDomain _domain, int _d_id=-1, int _c_id=-1, uint64_t _t_uid=0)
Position component for spatial location.
Vector position
2D/3D position vector
@ Olympe_EventType_Camera_Target_Follow