Level H Engine
Assignment1Demo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../State.h"
4 #include "../StateManager.h"
5 #include "../../Maths/Vec3.h"
6 
7 #define moveVel 10.0f;
8 
12 class Assignment1Demo : public State
13 {
14 public:
21 
26 
31  bool input();
32 
36  void update();
37 
41  void draw();
42 
43 private:
45  std::string backgroundMusicID;
47  std::string mousePressSoundID;
53  std::string escInfo;
54  std::string quickUserGuide;
55 };
Creates a State object to be inherited.
Definition: State.h:13
std::string escInfo
The demo info.
Definition: Assignment1Demo.h:53
Assignment1Demo(StateManager *stateManager, SDL_Window *window)
Constructs the State object.
Definition: Assignment1Demo.cpp:21
Creates a StateManager object.
Definition: StateManager.h:9
StateManager * stateManager
A pointer to the state manager.
Definition: State.h:64
std::string mousePressSoundID
The mouse press sound id.
Definition: Assignment1Demo.h:47
A State that contains and runs the Demo.
Definition: Assignment1Demo.h:12
SDL_Window * window
The window to display to.
Definition: State.h:66
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8
std::string quickUserGuide
Definition: Assignment1Demo.h:54
std::string backgroundMusicID
The background music id.
Definition: Assignment1Demo.h:45
bool resetPos
Definition: Assignment1Demo.h:51
Vec3 s2V
Definition: Assignment1Demo.h:49
bool input()
Handles the State input.
Definition: Assignment1Demo.cpp:174
bool initialLoop
Other bools.
Definition: Assignment1Demo.h:51
void update()
A function to update the State.
Definition: Assignment1Demo.cpp:257
bool jump
Definition: Assignment1Demo.h:51
~Assignment1Demo()
Destructs the State object.
Definition: Assignment1Demo.cpp:166
Vec3 s1V
The sphere velocities.
Definition: Assignment1Demo.h:49
void draw()
A function to draw the State to the screen.
Definition: Assignment1Demo.cpp:380