forked from johannawald/ICT207
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IStateController.h
27 lines (24 loc) · 871 Bytes
/
IStateController.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
// @ Unit : ICT207
// @ File Name : IStateController.h
// @ Author : Johanna Wald
//
//
// Interface for a gameState controller
// Since the functions are abstract, you have to implement them in derived classes
// The StateMachine has a member Variable based on this class and call them
#pragma once
class IStateController {
public:
virtual ~IStateController() {};
//Initialization of your class
virtual void Init() = 0;
virtual void Update() = 0;
virtual void Draw() = 0;
virtual void SpecialKey(int key, int x, int y) = 0;
virtual void SpecialKeyUp(int key, int x, int y) = 0;
virtual void KeyboardUp(unsigned char key, int x, int y) = 0;
virtual void Keyboard(unsigned char key, int x, int y) = 0;
virtual void Mouse(int button, int state, int x, int y) = 0;
virtual void PassiveMotion(int x, int y) = 0;
virtual void Reshape(int w, int h) = 0;
};