org.pilotix.server
Class ServerShip

java.lang.Object
  extended by org.pilotix.common.PilotixElement
      extended by org.pilotix.common.Ship
          extended by org.pilotix.server.ServerShip
All Implemented Interfaces:
Transferable

public class ServerShip
extends Ship


Field Summary
protected  Command command
           
protected  Vector nextPosition
           
protected  Vector nextSpeed
           
protected  int radius
           
 
Fields inherited from class org.pilotix.common.Ship
ACCELERATING, ADD, direction, HIT, NULL, REMOVE, speed
 
Fields inherited from class org.pilotix.common.PilotixElement
id, position, states
 
Fields inherited from interface org.pilotix.common.Transferable
AREA, BALL, COMMAND, INFO, SHIP
 
Constructor Summary
ServerShip()
           
 
Method Summary
 void addCommand(Command aCommand)
           
 void commandPilotixElement(IterableArray balls)
           
 void computeSpeedFromForces()
           
 int getAcceleration()
           
 Command getCommand()
           
 java.lang.String getName()
           
 Vector getNextPosition()
           
 Vector getNextSpeed()
           
 Vector getSpeed()
           
 void nextFrame()
           
 void set(int aShipId, Vector aPosition, ServerAngle aDirection, int theStates)
           
 void setCommand(Command aCommand)
           
 void setName(java.lang.String shipName)
           
 void setNextPosition(Vector aPosition)
           
 void setNextSpeed(Vector aSpeed)
           
 
Methods inherited from class org.pilotix.common.Ship
getDirection, getId, getRadius, read, set, setId, write
 
Methods inherited from class org.pilotix.common.PilotixElement
getPosition, getStates, setStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextPosition

protected Vector nextPosition

nextSpeed

protected Vector nextSpeed

radius

protected int radius

command

protected Command command
Constructor Detail

ServerShip

public ServerShip()
Method Detail

set

public void set(int aShipId,
                Vector aPosition,
                ServerAngle aDirection,
                int theStates)

setCommand

public void setCommand(Command aCommand)

addCommand

public void addCommand(Command aCommand)

computeSpeedFromForces

public void computeSpeedFromForces()

nextFrame

public void nextFrame()

getSpeed

public Vector getSpeed()

getNextPosition

public Vector getNextPosition()

getNextSpeed

public Vector getNextSpeed()

setNextPosition

public void setNextPosition(Vector aPosition)

setNextSpeed

public void setNextSpeed(Vector aSpeed)

getAcceleration

public int getAcceleration()

getCommand

public Command getCommand()

commandPilotixElement

public void commandPilotixElement(IterableArray balls)

setName

public void setName(java.lang.String shipName)

getName

public java.lang.String getName()


artefarita.com/pilotix Pilotix 2003-2013 - Stilisto : G.C.