Mapa hry. ...
#include <Level.h>
Třídy | |
struct | SActor |
struct | SLevelObjects |
Veřejné typy | |
typedef struct CLevel::SActor | SACTOR |
typedef struct CLevel::SLevelObjects | SLEVELOBJECTS |
Veřejné metody | |
void | render () |
void | update () |
void | setWallTexId (int num, int texId) |
void | setCrateTexId (int texId) |
void | setBoxTexId (int texId) |
void | setDoorsTex (int texId) |
void | setWindow (int texId) |
void | createMap (int **map, int width, int length, int playerPositionX, int playerPositionZ) |
bool | moveActorTo (int x, int y) |
bool | isFinished () |
void | clearMap () |
int | getActorTurns () const |
Mapa hry.
Kontakt: tomanfra@fit.cvut.cz
void CLevel::createMap | ( | int ** | map, | |
int | width, | |||
int | length, | |||
int | playerPositionX, | |||
int | playerPositionY | |||
) |
Vytvoření levelu
map | ||
width | ||
length |
bool CLevel::moveActorTo | ( | int | x, | |
int | y | |||
) |
Pohyb hrace
x | ||
y |
void CLevel::setBoxTexId | ( | int | texId | ) |
Nastavení textury pro boxy
texId |
void CLevel::setCrateTexId | ( | int | texId | ) |
Nastavení textury pro krabice
texId |