Added LocalCharacter, removed entityIndex

This commit is contained in:
Kayne Ruse
2014-12-19 19:44:34 +11:00
parent 07af05712b
commit 2ae2c48819
10 changed files with 104 additions and 31 deletions
-7
View File
@@ -21,10 +21,6 @@
*/
#include "entity.hpp"
int Entity::SetEntityIndex(int i) {
return entityIndex = i;
}
int Entity::SetRoomIndex(int i) {
return roomIndex = i;
}
@@ -36,9 +32,6 @@ Vector2 Entity::SetOrigin(Vector2 v) {
Vector2 Entity::SetMotion(Vector2 v) {
return motion = v;
}
int Entity::GetEntityIndex() {
return entityIndex;
}
int Entity::GetRoomIndex() {
return roomIndex;
-3
View File
@@ -28,12 +28,10 @@
class Entity {
public:
//accessors & mutators
int SetEntityIndex(int i);
int SetRoomIndex(int i);
Vector2 SetOrigin(Vector2 v);
Vector2 SetMotion(Vector2 v);
int GetEntityIndex();
int GetRoomIndex();
Vector2 GetOrigin();
Vector2 GetMotion();
@@ -42,7 +40,6 @@ protected:
Entity() = default;
~Entity() = default;
int entityIndex = -1;
int roomIndex = -1;
Vector2 origin;
Vector2 motion;