Add Alot
This commit is contained in:
@@ -89,6 +89,7 @@ WorldTile::~WorldTile() {
|
||||
}
|
||||
void WorldTile::Draw() {
|
||||
|
||||
utils::SetColor(Colors::WHITE);
|
||||
|
||||
switch (m_GroundTileType->GetType()) {
|
||||
case GroundTileTypes::Air: {
|
||||
|
||||
@@ -22,6 +22,7 @@ enum class GroundTileTypes {
|
||||
Iron,
|
||||
};
|
||||
|
||||
|
||||
static std::map<GroundTileTypes, std::string> GroundTileTypeStrings {
|
||||
{ GroundTileTypes::Air, "Air" },
|
||||
{ GroundTileTypes::Dirt, "Dirt" },
|
||||
@@ -35,6 +36,9 @@ static std::map<GroundTileTypes, std::string> GroundTileTypeStrings {
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GroundTileType * getRandomGroundTile();
|
||||
|
||||
class GroundTileType {
|
||||
@@ -140,7 +144,7 @@ public:
|
||||
~WorldTile();
|
||||
|
||||
void Draw();
|
||||
void Update(const Camera* camera); //TODO: no use
|
||||
void Update(const Camera* camera);
|
||||
|
||||
Vector2f GetPosition() const {
|
||||
return m_Position;
|
||||
|
||||
Reference in New Issue
Block a user