Code tweak

This commit is contained in:
Kayne Ruse
2014-12-01 22:59:26 +11:00
parent cc167180f6
commit f50406d69f
5 changed files with 61 additions and 12 deletions
+4 -4
View File
@@ -32,24 +32,24 @@ public:
virtual void Update();
virtual void DrawTo(SDL_Surface* const, int camX, int camY);
SpriteSheet* GetSprite() { return &sprite; }
SpriteSheet* GetSprite();
//accessors & mutators
int SetEntityIndex(int i);
int SetRoomIndex(int i);
Vector2 SetOrigin(Vector2 v);
Vector2 SetMotion(Vector2 v);
BoundingBox SetBounds(BoundingBox b) { return bounds = b; }
BoundingBox SetBounds(BoundingBox b);
int GetEntityIndex();
int GetRoomIndex();
Vector2 GetOrigin();
Vector2 GetMotion();
BoundingBox GetBounds() { return bounds; }
BoundingBox GetBounds();
protected:
Entity() = default;
~Entity() = default;
virtual ~Entity() = default;
SpriteSheet sprite;
int entityIndex = -1;