diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-28 12:33:04 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-28 12:33:04 +0000 |
commit | 4e1d951705204899ee99d7fcedf582b25b86b506 (patch) | |
tree | 03cb919ff062368dfc334b9f71b932cf89e31517 /src/core | |
parent | 82c63c49134a6fca91d908792438e6284dc4cebf (diff) |
generic docking API,
race activating requires docking
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/entity.cc | 3 | ||||
-rw-r--r-- | src/core/entity.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index 47086ee..649212b 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -351,6 +351,9 @@ void Entity::receive_server_update(std::istream &is) { } +void Entity::dock(core::Entity *entity) +{ +} void Entity::frame(float seconds) { diff --git a/src/core/entity.h b/src/core/entity.h index c75bd41..bd26abe 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -167,6 +167,9 @@ public: */ virtual void frame(float seconds); + /// called when the entity received a docking request + virtual void dock(core::Entity *entity); + /// set dirty flag inline void set_dirty() { entity_dirty = true; } |