From 4e1d951705204899ee99d7fcedf582b25b86b506 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Dec 2008 12:33:04 +0000 Subject: generic docking API, race activating requires docking --- src/core/entity.cc | 3 +++ src/core/entity.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/core') 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; } -- cgit v1.2.3