GameMap

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Enums

Direction
enum Direction
Undocumented in source.

Functions

addApple
AppleEntity addApple(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
addSnake
void addSnake(SnakeEntity snakepart)
Undocumented in source. Be warned that the author may not have intended to support it.
addToTileset
int addToTileset(IntRect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
calcTileNeighbors
int calcTileNeighbors(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
calcWallIndexes
void calcWallIndexes()
Undocumented in source. Be warned that the author may not have intended to support it.
calcWallShadows
void calcWallShadows()
Undocumented in source. Be warned that the author may not have intended to support it.
createMap
void createMap()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(Vector2f pos, RenderTarget target)
Undocumented in source. Be warned that the author may not have intended to support it.
getIndex
int getIndex(int x, int y, int layer)
Undocumented in source. Be warned that the author may not have intended to support it.
getTile
Tile getTile(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
sortEntities
void sortEntities()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

currentFrame
float currentFrame;
Undocumented in source.
currentFrameIndex
int currentFrameIndex;
Undocumented in source.
currentMaxFrameIndex
int currentMaxFrameIndex;
Undocumented in source.
entities
Entity[] entities;
Undocumented in source.
frameChange
float frameChange;
Undocumented in source.
gridHeight
int gridHeight;
Undocumented in source.
gridWidth
int gridWidth;
Undocumented in source.
height
int height;
Undocumented in source.
tex
Texture tex;
Undocumented in source.
tileHeight
int tileHeight;
Undocumented in source.
tileRects
IntRect[] tileRects;
Undocumented in source.
tileWidth
int tileWidth;
Undocumented in source.
tiles
Tile[] tiles;
Undocumented in source.
width
int width;
Undocumented in source.

Meta