|
nsnake
Classic snake game for the terminal
|
This represents the actual game taking place. More...
#include <GameStateGame.hpp>


Public Member Functions | |
| void | load () |
| void | unload () |
| void | update () |
| void | draw () |
This represents the actual game taking place.
Here is defined all the game logic and rules.
Before you continue, take a deep breath.
Done? OK. This is the most complex class of this game and it uses pretty much every other class on the project.
To understand it you must have a lot of patience and that "I'll see what it means later" feeling.
Don't try to understand everything at once! Try to abstract a litte and follow the code thinking only in terms of what you think it's doing.
After you've quite guessed what a method does, start looking into the classes that it uses.
Definition at line 29 of file GameStateGame.hpp.
| GameStateGame::GameStateGame | ( | ) |
Definition at line 12 of file GameStateGame.cpp.
|
virtual |
Definition at line 16 of file GameStateGame.cpp.
| void GameStateGame::draw | ( | ) |
Definition at line 77 of file GameStateGame.cpp.
| void GameStateGame::load | ( | ) |
Definition at line 18 of file GameStateGame.cpp.
| void GameStateGame::unload | ( | ) |
Definition at line 42 of file GameStateGame.cpp.
| void GameStateGame::update | ( | ) |
Definition at line 46 of file GameStateGame.cpp.