twcore.core
Class Ship

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--twcore.core.Ship
All Implemented Interfaces:
java.lang.Runnable

public class Ship
extends java.lang.Thread


Field Summary
static boolean MOVEMENT_MOVING
           
static boolean MOVEMENT_UNMOVING
           
static int MOVING_TIME
           
static int UNMOVING_TIME
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void attach(int playerId)
           
 void fire(int weapon)
           
 void move(int x, int y)
           
 void move(int x, int y, int xVel, int yVel)
           
 void move(int direction, int x, int y, int xVel, int yVel, int togglables, int energy, int bounty)
           
 void rotateDegrees(int degrees)
           
 void rotateRadians(double rads)
           
 void run()
           
 void sendPositionPacket()
           
 void setFreq(int freq)
           
 void setMoving(boolean moving)
           
 void setRotation(int rotation)
           
 void setShip(int shipType)
           
 void unattach()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOVING_TIME

public static int MOVING_TIME

UNMOVING_TIME

public static int UNMOVING_TIME

MOVEMENT_UNMOVING

public static boolean MOVEMENT_UNMOVING

MOVEMENT_MOVING

public static boolean MOVEMENT_MOVING
Method Detail

move

public void move(int direction,
                 int x,
                 int y,
                 int xVel,
                 int yVel,
                 int togglables,
                 int energy,
                 int bounty)

move

public void move(int x,
                 int y,
                 int xVel,
                 int yVel)

move

public void move(int x,
                 int y)

setMoving

public void setMoving(boolean moving)

setRotation

public void setRotation(int rotation)

sendPositionPacket

public void sendPositionPacket()

fire

public void fire(int weapon)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

rotateRadians

public void rotateRadians(double rads)

rotateDegrees

public void rotateDegrees(int degrees)

setShip

public void setShip(int shipType)

setFreq

public void setFreq(int freq)

attach

public void attach(int playerId)

unattach

public void unattach()