Added LocalCharacter, removed entityIndex
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user