#include <game.h>
Public Methods | |
Game () | |
~Game () | |
int | initGame () |
int | mainLoop () |
void | render () |
int | screenW () |
int | screenH () |
Public Attributes | |
Ground * | ground |
Renderer * | renderer |
Player * | players [MAX_PLAYERS] |
GameGUI * | gui |
Texture * | minimap |
BFont * | defaultFont |
BFont * | tooltipFont |
BFont * | buttonFont |
Private Methods | |
int | init () |
int | unInit () |
Private Attributes | |
Input | input |
friend | Ground |
friend | Renderer |
friend | Player |
friend | BFont |
friend | GUIButton |
friend | GameGUI |
float | fps |
float | framecounter |
float | fpstime |
float | camerasmooth |
|
|
|
|
|
|
|
Load stuff that are needed to run game.
|
|
Enter mainloop. Function returns when game quits.
|
|
Render everything and flip buffers.
|
|
Shortcut to renderer->getScreenH().
|
|
Shortcut to renderer->getScreenW().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|