#include <game_factory.h>
It also offers a method to destroy Game objects. This class implements the Singleton pattern.
Definition at line 35 of file game_factory.h.
Public Member Functions | |
Training * | createTraining (const Dictionary &iDic) |
FreeGame * | createFreeGame (const Dictionary &iDic) |
Duplicate * | createDuplicate (const Dictionary &iDic) |
Game * | createFromCmdLine (int argc, char **argv) |
void | releaseGame (Game &iGame) |
Destroy a Game object, created by any of the createXXX methods above. | |
Static Public Member Functions | |
static GameFactory * | Instance () |
static void | Destroy () |
|
Definition at line 72 of file game_factory.cpp. Referenced by createFromCmdLine(), Game::gameLoadFormat_15(), and main_loop(). |
|
Definition at line 65 of file game_factory.cpp. Referenced by createFromCmdLine(), Game::gameLoadFormat_15(), and main_loop(). |
|
Definition at line 79 of file game_factory.cpp. References Game::addAIPlayer(), Game::addHumanPlayer(), createDuplicate(), createFreeGame(), createTraining(), Dic_load(), Game::kJOKER, and Game::setVariant(). Referenced by main(). |
|
Definition at line 58 of file game_factory.cpp. Referenced by createFromCmdLine(), EVT_TEXT_ENTER(), Game::gameLoadFormat_14(), Game::gameLoadFormat_15(), main_loop(), and MainFrame::OnMenuGameNew(). |
|
Definition at line 50 of file game_factory.cpp. Referenced by main(), and EliotApp::OnExit(). |
|
Definition at line 42 of file game_factory.cpp. Referenced by EVT_TEXT_ENTER(), Game::gameLoadFormat_14(), Game::gameLoadFormat_15(), main(), main_loop(), MainFrame::OnMenuGameNew(), MainFrame::OnMenuGameOpen(), CursesIntf::~CursesIntf(), and MainFrame::~MainFrame(). |
|
Destroy a Game object, created by any of the createXXX methods above.
Definition at line 188 of file game_factory.cpp. Referenced by main_loop(), MainFrame::OnMenuGameNew(), MainFrame::OnMenuGameOpen(), CursesIntf::~CursesIntf(), and MainFrame::~MainFrame(). |