Creatures update server-side
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user