Orxonox: orxonox::Game::GameStateFactory Class Reference

# orxonox::Game::GameStateFactory Class Reference

Inheritance diagram for orxonox::Game::GameStateFactory:

List of all members.

## Public Member Functions

virtual | ~GameStateFactory ()

## Static Public Member Functions

template<class T>
static void | createFactory (const std::string &className)
static void | destroyFactories ()
static GameState * | fabricate (const std::string &className, const GameStateConstrParams &params)

## Private Member Functions

virtual GameState * | fabricate (const GameStateConstrParams &params)=0

## Static Private Attributes

static std::map< std::string, GameStateFactory * > | factories_s

## Constructor & Destructor Documentation

virtual orxonox::Game::GameStateFactory::~GameStateFactory | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

template<class T>

static void orxonox::Game::GameStateFactory::createFactory | ( | const std::string & | className | ) | `[inline, static]`

void orxonox::Game::GameStateFactory::destroyFactories | ( |  | ) | `[static]`

References factories_s.

Referenced by orxonox::Game::~Game().

virtual GameState* orxonox::Game::GameStateFactory::fabricate | ( | const GameStateConstrParams & | params | ) | `[private, pure virtual]`

Implemented in orxonox::Game::TemplateGameStateFactory< T >.

GameState * orxonox::Game::GameStateFactory::fabricate | ( | const std::string & | className,
|  | const GameStateConstrParams & | params |
| ) |  |  | `[static]`

References factories_s.

Referenced by orxonox::Game::Game().

## Member Data Documentation

std::map< std::string, Game::GameStateFactory * > orxonox::Game::GameStateFactory::factories_s`[static, private]`

Referenced by destroyFactories(), and fabricate().

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

- src/core/Game.h
- src/core/Game.cc