diff ships/planet.d @ 24:441eb7672404

impleneted steer to avoid
author zzzzrrr <mason.green@gmail.com>
date Fri, 27 Mar 2009 16:05:24 -0400
parents 4fce5596d1f6
children
line wrap: on
line diff
--- a/ships/planet.d	Thu Mar 26 20:35:58 2009 -0400
+++ b/ships/planet.d	Fri Mar 27 16:05:24 2009 -0400
@@ -36,20 +36,15 @@
 import blaze.collision.shapes.bzCircle : bzCircleDef;
 import blaze.common.bzMath: bzVec2;
 
-import openmelee.ships.ship: State;
+import openmelee.ships.ship: Ship, State;
 
 
-class Planet 
+class Planet : Ship
 {
-    bzWorld world;
-    bzBody rBody;
-    
     this(bzWorld world) {
-        this.world = world;
+        super(world);
         init();
-        auto state = new State;
-        state.radius = rBody.shapeList.sweepRadius;
-        rBody.userData = state;
+        calcRadius();
     }
     
     void init() {