#ifndef GAME_H #define GAME_H #include #include #include "function.h" #include "situation.h" #include "scope.h" #include "commandset.h" class Game { friend class GameBuilder; public: Game(); virtual ~Game(); Function *getFunction( const Bu::String &sName ); Variable getParam( const Bu::String &sName ) const; Situation *getSituation( const Bu::String &sName ); private: void addFunction( Function *pFunc ); private: typedef Bu::Hash FunctionHash; typedef Bu::Hash SituationHash; VariableHash hGlobalParam; FunctionHash hFunction; SituationHash hSituation; CommandSet csGlobal; }; #endif