Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-17 21:25:27 +0000
committerStijn Buys <ingar@osirion.org>2010-10-17 21:25:27 +0000
commit1032161366da1b2153de8d804465061e6bcc4fce (patch)
treed9163c92c79791c9495e6d5f2944aea27c24e77f /src/game/base/station.cc
parent31c4ff4ff080ea34389c60ba4edd268dc7f3c08a (diff)
moved bullet objets to core::Entity,
moved docking functions to game.cc and removed entity->dock(), enabled depth testing for bullet debug draw
Diffstat (limited to 'src/game/base/station.cc')
-rw-r--r--src/game/base/station.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/game/base/station.cc b/src/game/base/station.cc
index f5dc50a..0d992bd 100644
--- a/src/game/base/station.cc
+++ b/src/game/base/station.cc
@@ -22,26 +22,4 @@ Station::~Station()
{
}
-void Station::dock(core::Entity *entity)
-{
- if (entity->moduletype() != ship_enttype)
- return;
-
- Ship * ship = static_cast<Ship *>(entity);
-
- if (math::distance(location(), ship->location()) > radius() + ship->radius()) {
- if (ship->owner())
- ship->owner()->send("Target out of range");
- return;
- }
-
- ship->get_location().assign(location());
- ship->set_state(core::Entity::Docked);
-
- if (ship->owner() && ship->owner()->control() == ship) {
- ship->owner()->set_view(this);
- ship->owner()->send("^BDocking at " + name());
- }
-}
-
}