Archimedes/Dash Da Capo!
|
Your friendly next-door-tile. Does everything a tile can. It's the backbone class for our map. More...
#include <Tile.h>
Public Member Functions | |
Tile (int x, int y, int w, int h, TileType tileType) | |
bool | render (SDL_Renderer *renderer, TextureWrapper &tileTexture, const SDL_Rect &camera, const std::vector< SDL_Rect > &tileClips) |
TileType | getType () |
SDL_Rect | getCollisionBox () |
Your friendly next-door-tile. Does everything a tile can. It's the backbone class for our map.
bool Tile::render | ( | SDL_Renderer * | renderer, |
TextureWrapper & | tileTexture, | ||
const SDL_Rect & | camera, | ||
const std::vector< SDL_Rect > & | tileClips | ||
) |
renderer | |
tileTexture | takes a particular texture from tileSheet |
camera | needs the camera position to know whether to render or not |
tileClips | vector of the coordinates to render in |