|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epochx.action.Action
com.epochx.action.AntAction
com.epochx.action.AntTurnLeftAction
public class AntTurnLeftAction
This class defines an action which when executed will trigger the ant to turn left from its current orientation in its ant landscape.
| Field Summary |
|---|
| Fields inherited from class com.epochx.action.Action |
|---|
DO_NOTHING |
| Constructor Summary | |
|---|---|
AntTurnLeftAction(Ant ant)
Constructs an AntTurnLeftAction, supplying an ant that the action can be performed on. |
|
| Method Summary | |
|---|---|
void |
execute()
Execute this action, which will trigger the ant to turn left from its current orientation in its ant landscape. |
java.lang.String |
toString()
String representation of this action which identifies the action type. |
| Methods inherited from class com.epochx.action.AntAction |
|---|
getAnt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AntTurnLeftAction(Ant ant)
ant - the Ant that will be turned left upon execution.| Method Detail |
|---|
public void execute()
execute in class Actionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||