fate.world
Class Planetoid


java.lang.Object

  |

  +--fate.world.WorldObject

        |

        +--fate.world.OrbitingBody

              |

              +--fate.world.Planetoid


public class Planetoid
extends OrbitingBody
implements java.lang.Cloneable, java.io.Serializable

Represents a planet, asteroid, or any other fixed object orbiting in a SolarSystem.

See Also:
Serialized Form

Field Summary
 MapWorldObject mapGround
          Map of all ground objects
 MapWorldObject mapOrbiting
          Map of all orbiting objects
 
Fields inherited from class fate.world.OrbitingBody
distance, position, velocity
 
Fields inherited from class fate.world.WorldObject
id, name, parent
 
Constructor Summary
Planetoid()
          Creates new Planetoid
Planetoid(java.lang.String name, int distance, double position, double velocity)
          Creates new Planetoid with default starting values
 
Method Summary
 Planetoid cloneForClient()
          Creates a clone suitable for sending from server to client
 
Methods inherited from class fate.world.OrbitingBody
compareTo, x, y
 
Methods inherited from class fate.world.WorldObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mapOrbiting


public MapWorldObject mapOrbiting
Map of all orbiting objects

mapGround


public MapWorldObject mapGround
Map of all ground objects
Constructor Detail

Planetoid


public Planetoid(java.lang.String name,
                 int distance,
                 double position,
                 double velocity)
Creates new Planetoid with default starting values

Planetoid


public Planetoid()
Creates new Planetoid
Method Detail

cloneForClient


public Planetoid cloneForClient()
Creates a clone suitable for sending from server to client