moagg.model.object
Interface ControllableObject

All Superinterfaces:
MoaggGameObject
All Known Implementing Classes:
GhostShip, Missile, Ship

public interface ControllableObject
extends MoaggGameObject

Game objects that can be controlled by rotating and thrusting have to implement this interface.


Method Summary
 double getAngle()
           
 long getFuel()
           
 long getFuelCapacity()
           
 long getFuelPerMilliSecond()
           
 long getMass()
           
 Rotation getRotation()
           
 double getRotationSpeed()
           
 double getThrustForce()
           
 boolean isAligned()
           
 boolean isThrust()
           
 void setAngle(double angle)
           
 void setFuel(long fuel)
           
 void setFuelCapacity(long fuelCapacity)
           
 void setFuelPerMilliSecond(long fuelPerMilliSecond)
           
 void setMass(long mass)
           
 void setRotation(Rotation rotation)
           
 void setRotationSpeed(double rotationSpeed)
           
 void setThrust(boolean thrust)
           
 void setThrustForce(double thrustForce)
           
 
Methods inherited from interface moagg.model.object.MoaggGameObject
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show
 

Method Detail

getAngle

double getAngle()

setAngle

void setAngle(double angle)

isThrust

boolean isThrust()

setThrust

void setThrust(boolean thrust)

getThrustForce

double getThrustForce()

setThrustForce

void setThrustForce(double thrustForce)

getMass

long getMass()

setMass

void setMass(long mass)

getFuelCapacity

long getFuelCapacity()

setFuelCapacity

void setFuelCapacity(long fuelCapacity)

getFuel

long getFuel()

setFuel

void setFuel(long fuel)

getFuelPerMilliSecond

long getFuelPerMilliSecond()

setFuelPerMilliSecond

void setFuelPerMilliSecond(long fuelPerMilliSecond)

getRotation

Rotation getRotation()

setRotation

void setRotation(Rotation rotation)

isAligned

boolean isAligned()

getRotationSpeed

double getRotationSpeed()

setRotationSpeed

void setRotationSpeed(double rotationSpeed)


Copyright © 2008. All Rights Reserved.