diff options
Diffstat (limited to 'src/tesseract/objects/tank/Tank.java')
-rw-r--r-- | src/tesseract/objects/tank/Tank.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/tesseract/objects/tank/Tank.java b/src/tesseract/objects/tank/Tank.java index d9975b3..059efa5 100644 --- a/src/tesseract/objects/tank/Tank.java +++ b/src/tesseract/objects/tank/Tank.java @@ -27,22 +27,21 @@ public class Tank extends RemoteObject { private static final int maxBarrelElevation = 14;
private static final int minBarrelElevation = -1;
- public Tank(final Vector3f thePosition, final float mass,
- final World theWorld) {
- this(thePosition, mass, DEFAULT_SCALE, theWorld);
+ public Tank(final Vector3f thePosition, final float mass) {
+ this(thePosition, mass, DEFAULT_SCALE);
}
public Tank(final Vector3f thePosition, final float mass,
- final float theScale, final World theWorld) {
+ final float theScale) {
this(thePosition, mass, theScale, DEFAULT_BODY_COLOR,
- DEFAULT_TRACK_COLOR, DEFAULT_TURRET_COLOR, theWorld);
+ DEFAULT_TRACK_COLOR, DEFAULT_TURRET_COLOR);
}
public Tank(final Vector3f thePosition, final float mass,
final float theScale, final Color bodyColor, final Color trackColor,
- final Color turretColor, final World theWorld) {
+ final Color turretColor) {
super (thePosition, mass);
- tank = new Body(trackColor, bodyColor, theScale, turretColor, theWorld);
+ tank = new Body(trackColor, bodyColor, theScale, turretColor);
//orientation = new Vector3f();
aim = new Vector3f();
gunLocation = new Point3f();
@@ -148,7 +147,7 @@ public class Tank extends RemoteObject { barrelElevation--;
}
break;
- }
+ }
}
|