-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGameState.h
62 lines (44 loc) · 1.38 KB
/
GameState.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* GameState.h
* Prototyp
*
* Created by Christian Pehle on 26.08.09.
* Copyright 2009 Universität Heidelberg. All rights reserved.
*
*/
#ifndef GameState_H
#define GameState_H
#include <OIS/OISMouse.h>
#include <OIS/OISKeyboard.h>
#include <Ogre/OgreRoot.h>
#include <Ogre/OgreRenderWindow.h>
#include <Ogre/OgreOverlayElement.h>
#include <Ogre/OgreOverlayManager.h>
#include <Ogre/OgreStringConverter.h>
#include "Game.h"
namespace Orbifold {
class GameState {
public:
virtual void save() = 0;
virtual void restore() = 0;
virtual void enter() = 0;
virtual void exit() = 0;
virtual void initialise() = 0;
virtual void shutdown() = 0;
virtual void update() = 0;
virtual bool keyPressed(const OIS::KeyEvent &evt) = 0;
virtual bool keyReleased(const OIS::KeyEvent &evt) = 0;
virtual bool mouseMoved(const OIS::MouseEvent &evt) = 0;
virtual bool mousePressed(const OIS::MouseEvent &evt, OIS::MouseButtonID id) = 0;
virtual bool mouseReleased(const OIS::MouseEvent &evt, OIS::MouseButtonID id) = 0;
virtual void windowResized(Ogre::RenderWindow* rw) = 0;
virtual void windowMoved(Ogre::RenderWindow* rw) = 0;
virtual bool windowClosing(Ogre::RenderWindow* rw) = 0;
virtual void windowClosed(Ogre::RenderWindow* rw) = 0;
virtual void windowFocusChange(Ogre::RenderWindow* rw) = 0;
protected:
GameState(){}
~GameState(){}
};
}
#endif