Archimedes/Dash Da Capo!
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Tile Class Reference

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 ()
 

Detailed Description

Your friendly next-door-tile. Does everything a tile can. It's the backbone class for our map.

Member Function Documentation

◆ render()

bool Tile::render ( SDL_Renderer *  renderer,
TextureWrapper tileTexture,
const SDL_Rect &  camera,
const std::vector< SDL_Rect > &  tileClips 
)
Parameters
renderer
tileTexturetakes a particular texture from tileSheet
cameraneeds the camera position to know whether to render or not
tileClipsvector of the coordinates to render in
Returns


The documentation for this class was generated from the following file: