#include "game.h" #include "functiondisplay.h" Game::Game() { addFunction( new FunctionDisplay() ); } Game::~Game() { for( FunctionHash::iterator i = hFunction.begin(); i; i++ ) { delete (*i); } for( SituationHash::iterator i = hSituation.begin(); i; i++ ) { delete (*i); } } Function *Game::getFunction( const Bu::String &sName ) { return hFunction.get( sName ); } void Game::addFunction( Function *pFunc ) { hFunction.insert( pFunc->getName(), pFunc ); }