Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
state.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <iostream>
5 #include <string.h>
6 
8 class StateManager;
9 
15 class State
16 {
17 protected:
18  /*A pointer to the state manager*/
20  /*The render to display to*/
21  SDL_Renderer * renderer;
22  /*the dimensions of the screen*/
25 public:
33  State(StateManager *, SDL_Renderer *, int, int);
34 
38  virtual ~State();
39 
45  virtual bool input() = 0;
46 
52  virtual void update(float deltaTime) = 0;
53 
58  virtual void draw() = 0;
59 };
Creates a State object. Creates a State object to be inherited. DISCLAIMER - This code is from my PGG...
Definition: state.h:15
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAIMER - This code ...
Definition: stateManager.h:11
StateManager * stateManager
Definition: state.h:19
virtual bool input()=0
SDL_Renderer * renderer
Definition: state.h:21
virtual ~State()
Definition: state.cpp:21
State(StateManager *, SDL_Renderer *, int, int)
Definition: state.cpp:6
int screenHeight
Definition: state.h:24
virtual void update(float deltaTime)=0
int screenWidth
Definition: state.h:23
virtual void draw()=0