From 7668b60981dadeced3b5c8ee27c16575d59844de Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 21 Aug 2008 19:33:57 +0000 Subject: entity.set_eventstate --- src/core/entity.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/entity.h') diff --git a/src/core/entity.h b/src/core/entity.h index 30e3356..8a996fd 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -266,6 +266,9 @@ public: /// receive a server-to-client update from a stream virtual void receive_server_update(std::istream &is); + /// set event state + virtual void set_eventstate(Event eventstate); + /// runs one game frame for the entity /** * The default implementation will update the position() of the entity, @@ -276,10 +279,10 @@ public: /// speed of the entity float entity_speed; - unsigned int entity_eventstate; protected: float entity_timer; + int entity_eventstate; }; -- cgit v1.2.3