mirror of
https://github.com/dylanbenzi/terminaltrainers.git
synced 2026-11-27 07:47:01 +00:00
refactor codebase, add Makefile
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#ifndef TILE_H
|
||||
#define TILE_H
|
||||
|
||||
class Tile {
|
||||
private:
|
||||
int x;
|
||||
int y;
|
||||
int tileOffset;
|
||||
int renderLayer;
|
||||
int baseTileCode = 0;
|
||||
int cellPixelsX = 8;
|
||||
int cellPixelsY = 4;
|
||||
bool collisionTile;
|
||||
public:
|
||||
Tile();
|
||||
|
||||
void renderSingle(int x, int y);
|
||||
|
||||
int getX() const;
|
||||
int getY() const;
|
||||
int getTileOffset() const;
|
||||
int getRenderLayer() const;
|
||||
bool getCollisionTile() const;
|
||||
|
||||
void setX(int x);
|
||||
void setY(int y);
|
||||
void setCoord(int x, int y);
|
||||
void setTileOffset(int tileOffset);
|
||||
void setRenderLayer(int renderLayer);
|
||||
void setCollisionTile(bool isCollisionTile);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user