Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-28 12:33:04 +0000
committerStijn Buys <ingar@osirion.org>2008-12-28 12:33:04 +0000
commit4e1d951705204899ee99d7fcedf582b25b86b506 (patch)
tree03cb919ff062368dfc334b9f71b932cf89e31517 /src/core
parent82c63c49134a6fca91d908792438e6284dc4cebf (diff)
generic docking API,
race activating requires docking
Diffstat (limited to 'src/core')
-rw-r--r--src/core/entity.cc3
-rw-r--r--src/core/entity.h3
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; }