moagg.model
Interface Controllable

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ControllableImpl

public interface Controllable
extends java.io.Serializable

Game objects that can be controlled by rotating and thrusting should use this interface (and impl) for storing the state.

See Also:
ControllableObject

Method Summary
 double getAngle()
           
 long getFuel()
           
 long getFuelCapacity()
           
 long getFuelPerMilliSecond()
           
 long getMass()
           
 Rotation getRotation()
           
 double getRotationSpeed()
           
 double getThrustForce()
           
 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)
           
 

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)

getRotationSpeed

double getRotationSpeed()

setRotationSpeed

void setRotationSpeed(double rotationSpeed)


Copyright © 2008. All Rights Reserved.