diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-04 21:42:54 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-04 21:42:54 +0000 |
commit | 5701da5df3e5f0d3a40af0abf7e03302275dcca2 (patch) | |
tree | 6135b87fc0573183a02688b0415a1ed70a40c751 /src/core/entity.cc | |
parent | a3450f23b09e8d5c66f710fbaf085d6d3b6d8122 (diff) |
Introduce Entity::hit() callback, prevent projectiles from doing no damage.
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r-- | src/core/entity.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index 67227ca..4d8c4c7 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -955,6 +955,10 @@ void EntityDynamic::collision(Entity *other) { } +void EntityDynamic::hit(Entity *other) +{ +} + void EntityDynamic::serialize_server_create(std::ostream & os) const { Entity::serialize_server_create(os); |