|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSpaceGame
Field Summary | |
(package private) SpaceGui |
gui
|
(package private) int |
ownPort
|
(package private) Receiver |
receive
|
(package private) Sector |
sector
|
(package private) Sender |
send
|
Constructor Summary | |
SpaceGame()
Creates all components needed to start a space game. |
Method Summary | |
void |
join()
Creates a new sector.ownShip if one does not exist. |
static void |
main(java.lang.String[] args)
|
void |
moveFoward()
Causes sector.ownShip to move forward and sends an update message for the position change. |
void |
turnLeft()
Causes sector.ownShip to turn and sends an update message for the heading change. |
void |
turnRight()
Causes sector.ownShip to turn and sends an update message for the heading change. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Sector sector
SpaceGui gui
Sender send
Receiver receive
int ownPort
Constructor Detail |
public SpaceGame()
Method Detail |
public void turnRight()
public void turnLeft()
public void moveFoward()
public void join()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |