mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2026-02-04 10:49:21 +01:00
15 lines
428 B
C++
15 lines
428 B
C++
#include "pch.h"
|
|
#include "WorldTile.h"
|
|
|
|
#include "utils.h"
|
|
WorldTile::WorldTile() {
|
|
}
|
|
WorldTile::WorldTile(const Point2f& position, GroundTileTypes groundTileType) : m_Position { position }, m_GroundTileType { groundTileType } {
|
|
}
|
|
void WorldTile::Draw() const {
|
|
if (m_GroundTileType != GroundTileTypes::Air) {
|
|
utils::SetColor(Color4f{ 0.5f, 0.5f, 0.5f, 1.0f});
|
|
utils::FillRect(m_Position.x, m_Position.y, 50, 50);
|
|
}
|
|
}
|