GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Protected Attributes | Private Attributes
radix::World Class Reference

#include <external/RadixEngine/include/radix/World.hpp>

Inherited by glPortal::World.

Public Member Functions

 World (InputSource &input)
 
void setConfig (radix::Config &config)
 
radix::ConfiggetConfig ()
 
 ~World ()
 
void create ()
 
void destroy ()
 
double getTime () const
 
void update (TDelta dtime)
 
EntitygetPlayer ()
 
EntitygetEntityById (EntityId id)
 Gets the reference to the entity with specified ID. More...
 
EntitygetEntityByName (const std::string &name)
 Gets the reference to the entity with specified name. More...
 

Data Fields

InputSourceinput
 
Camera camera
 
std::map< int, Materialmaterials
 
EventDispatcher event
 
SystemManager systems
 
EntityManager entities
 
std::map< std::string, Entity * > entityAliases
 
std::map< std::string,
std::vector< Entity * > > 
entityGroups
 
std::map< std::string,
std::vector< EntityPair > > 
entityPairs
 
std::stack< HandleGameFunctionstateFunctionStack
 

Protected Attributes

Entityplayer
 

Private Attributes

radix::Config config
 
double gameTime
 
uint32_t lastUpdateTime
 

Constructor & Destructor Documentation

radix::World::World ( InputSource input)
radix::World::~World ( )

Member Function Documentation

void radix::World::create ( )
void radix::World::destroy ( )
radix::Config & radix::World::getConfig ( )
Entity& radix::World::getEntityById ( EntityId  id)
inline

Gets the reference to the entity with specified ID.

Exceptions
std::out_of_rangeif no entity with this ID is found.
Entity& radix::World::getEntityByName ( const std::string &  name)
inline

Gets the reference to the entity with specified name.

Exceptions
std::out_of_rangeif no entity with this name is found.
Entity & radix::World::getPlayer ( )
double radix::World::getTime ( ) const
inline
void radix::World::setConfig ( radix::Config config)
void radix::World::update ( TDelta  dtime)

Field Documentation

Camera radix::World::camera
radix::Config radix::World::config
private
EntityManager radix::World::entities
std::map<std::string, Entity*> radix::World::entityAliases
std::map<std::string, std::vector<Entity*> > radix::World::entityGroups
std::map<std::string, std::vector<EntityPair> > radix::World::entityPairs
EventDispatcher radix::World::event
double radix::World::gameTime
private
InputSource& radix::World::input
uint32_t radix::World::lastUpdateTime
private
std::map<int, Material> radix::World::materials
Entity* radix::World::player
protected
std::stack<HandleGameFunction> radix::World::stateFunctionStack
SystemManager radix::World::systems

The documentation for this class was generated from the following files: