mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 20:41:47 +01:00
Added the Grid, Camera, Level system
Basic player Started (Barely) on the TextureManager And other fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include "Texture.h"
|
||||
|
||||
enum class GroundTileTypes
|
||||
{
|
||||
@@ -10,16 +11,25 @@ class WorldTile {
|
||||
public:
|
||||
WorldTile();
|
||||
WorldTile(const Point2f& position, GroundTileTypes groundTileType);
|
||||
~WorldTile();
|
||||
|
||||
void Draw() const;
|
||||
|
||||
Point2f GetPosition() const { return m_Position; }
|
||||
void SetPosition(const Point2f& position) { m_Position = position; }
|
||||
|
||||
Point2f GetSize() const { return Point2f{ 50, 50 }; }
|
||||
|
||||
GroundTileTypes GetTileType() const { return m_GroundTileType; }
|
||||
|
||||
|
||||
|
||||
private:
|
||||
Point2f m_Position;
|
||||
GroundTileTypes m_GroundTileType;
|
||||
|
||||
Texture* m_pTexture;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user