Creatures update server-side

This commit is contained in:
2016-03-27 09:53:24 +11:00
parent 57f92a8b2e
commit 4ced27a905
7 changed files with 49 additions and 14 deletions
+3 -1
View File
@@ -25,8 +25,10 @@ Entity::Entity(const char* _type): type(_type) {
//EMPTY
}
void Entity::Update() {
int Entity::Update() {
origin += motion;
return motion != 0;
}
int Entity::SetRoomIndex(int i) {
+1 -1
View File
@@ -29,7 +29,7 @@
//The base class for all objects in the world
class Entity {
public:
virtual void Update();
virtual int Update();
//accessors & mutators
int SetRoomIndex(int i);