|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.uni_paderborn.robots.actions.AbstractAction
|
+--de.uni_paderborn.robots.actions.RotateAction
the class for rotating a robot
| Field Summary | |
private int |
direction
the direction the robot looks: Robot.NORTH Robot.WEST Robot.SOUTH Robot.EAST |
| Constructor Summary | |
RotateAction(int direction)
to change the direction of the robot |
|
| Method Summary | |
void |
doAction(Robot robot)
changes the direction of the robot and updates the gui. |
int |
getDirection()
Read access method for attribute direction |
int |
setDirection(int direction)
Write access method for attribute direction |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private int direction
| Constructor Detail |
public RotateAction(int direction)
direction - as an int| Method Detail |
public void doAction(Robot robot)
doAction in class AbstractActionrobot - the Robot for which doAction should be executedpublic int getDirection()
public int setDirection(int direction)
direction - the new direction of the robot
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||