1 #ifndef RADIX_WORLD_HPP
2 #define RADIX_WORLD_HPP
5 #include <condition_variable>
radix::Config & getConfig()
Definition: World.cpp:41
EventDispatcher event
Definition: World.hpp:57
Definition: GameController.hpp:7
InputSource & input
Definition: World.hpp:39
double gameTime
Definition: World.hpp:88
Entity & getEntityByName(const std::string &name)
Gets the reference to the entity with specified name.
Definition: World.hpp:83
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
std::map< std::string, std::vector< EntityPair > > entityPairs
Definition: World.hpp:66
double getTime() const
Definition: World.hpp:47
EntityManager entities
Definition: World.hpp:61
Configuration class.
Definition: Config.hpp:19
SystemManager systems
Definition: World.hpp:59
Definition: EventDispatcher.hpp:13
Definition: TimeDelta.hpp:8
std::map< std::string, std::vector< Entity * > > entityGroups
Definition: World.hpp:65
void create()
Definition: World.cpp:47
Camera camera
Definition: World.hpp:54
Entity & getEntityById(EntityId id)
Gets the reference to the entity with specified ID.
Definition: World.hpp:75
std::map< std::string, Entity * > entityAliases
Definition: World.hpp:64
radix::Config config
Definition: World.hpp:34
Entity & getPlayer()
Definition: World.cpp:136
Definition: Camera.hpp:11
uint32_t EntityId
Definition: Entity.hpp:16
Manager and container of entities.
Definition: EntityManager.hpp:16
Entity * player
Definition: World.hpp:36
~World()
Definition: World.cpp:33
void setConfig(radix::Config &config)
Definition: World.cpp:37
std::map< int, Material > materials
Definition: World.hpp:55
void destroy()
Definition: World.cpp:51
uint32_t lastUpdateTime
Definition: World.hpp:89
std::pair< Entity *, Entity * > EntityPair
Definition: World.hpp:30
std::stack< HandleGameFunction > stateFunctionStack
Definition: World.hpp:69
Entity & getById(EntityId id)
Gets the reference to the entity with specified ID.
Definition: EntityManager.cpp:28
Entity & getByName(const std::string &name)
Gets the reference to the entity with specified name.
Definition: EntityManager.cpp:37
World(InputSource &input)
Definition: World.cpp:16
Definition: SystemManager.hpp:22
void update(TDelta dtime)
Definition: World.cpp:54