-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsuperplex_game.h
More file actions
66 lines (50 loc) · 1.69 KB
/
superplex_game.h
File metadata and controls
66 lines (50 loc) · 1.69 KB
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
63
64
65
66
#ifndef __TANKS_GAME_H__
#define __TANKS_GAME_H__
/* Includes */
#include <core/common.h>
#include <math/camera.h>
#include <engine/casual_game.h>
#include "supaplex_game.h"
/* Classes */
/** The superplex3d game. */
class SuperplexGame : public CasualGame
{
public:
/** Constructor. */
SuperplexGame();
/** Destructor. */
~SuperplexGame();
/** Renders a single frame. */
void renderFrame();
/** Renders the GUI. */
void renderGUI();
/** Runs the AI. */
void runAI();
/** Handles the player's input. */
void runPlayer();
private:
CameraPtr m_Camera; /**< Pointer to the camera. */
std::vector<MeshPtr> m_Meshes; /**< Array of meshes. */
std::vector<MeshPtr> m_Infotron; /**< Infotron meshes. */
std::vector<MeshPtr> m_Murphy; /**< Murphy meshes. */
std::vector<MeshPtr> m_SnikSnak; /**< Snik-snak meshes. */
MeshPtr m_Star; /**< Star. */
MeshPtr m_TerminalFront; /**< Front face of the terminal. */
ShaderPtr m_TerminalPixelShader; /**< Pixel shader for the terminal. */
LightningPtr m_Lightning; /**< Pointer to the lightning. */
SupaplexLogic m_Game; /**< Game logic. */
TexturePtr m_Boom; /**< Boom texture. */
double m_PrevFrameTime; /**< Time when previous frame has been executed. */
bool m_SkipThisFrame; /**< If true, this frame should be skipped. */
double m_InfotronFrame; /**< Current frame of the infotron animation. */
double m_InfotronAngle; /**< Current rotation angle of the infotron. */
/** Animates the infotron. */
void animateInfotron();
/** Renders the infotron. */
void renderInfotron();
/** Animates the electron. */
void animateElectron();
/** Renders the electron. */
void renderElectron();
};
#endif // __TANKS_GAME_H__