Code: Select all
void CGameStateLevel01::KeyboardEvent(CGameManager * pManager)
{
if(pManager->geyKey(irr::KEY_F12))
SetConsole(pManager,!console);
}
Code: Select all
Compiling...
GameStateLevel01.cpp
c:\f\gamestatelevel01.cpp(46) : error C2039: 'geyKey' : is not a member of 'CGameManager'
c:\f\gamemanager.h(20) : see declaration of 'CGameManager'
Code: Select all
class CGameState;
class CGameManager : public IEventReceiver
{
public:
void Update();
IrrlichtDevice* getDevice();
IVideoDriver* getDriver();
ISceneManager* getSceneManager();
IGUIEnvironment* getGUIEnvironment();
bool getKey(char key);
CGameManager();
virtual ~CGameManager();
virtual bool OnEvent(SEvent event);