Singleplayer match class. More...
#include <SinglePlayerMatch.h>
Public Member Functions | |
| SinglePlayerMatch (int aiDifficulty) | |
| ~SinglePlayerMatch () override | |
| int | Update (double deltaTime, CIw2DFont *font) override |
Protected Attributes | |
| AIOpponent * | m_ai |
| The AI opponent for the match. | |
| int | m_sleepTimer |
| Sleep timer for displaying AI messages. | |
| int | m_aiDifficulty |
| Int representing the ai difficulty (1 = easy, 2 = medium, 3 = hard). | |
Static Protected Attributes | |
| static const int | m_aiTurnLength = 50 |
| How long will an ai turn take? | |
Singleplayer match class.
Singleplayer game with an AI opponent.
| SinglePlayerMatch::SinglePlayerMatch | ( | int | aiDifficulty | ) |
Constructor.
Create a new singleplayer match.
| SinglePlayerMatch::~SinglePlayerMatch | ( | ) | [override] |
Destructor.
Destroy the match and release all associated memory.
| int SinglePlayerMatch::Update | ( | double | deltaTime, | |
| CIw2DFont * | font | |||
| ) | [override, virtual] |
Update.
Update the match and handle user input (if any).
| [in] | deltaTime | Time since the last update. |
| [in] | font | Font for rendering text. |
Implements Match.
1.7.1