public class Move extends Action
Constructor and Description |
---|
Move(int d)
Construct a new move direction.
|
Modifier and Type | Method and Description |
---|---|
State |
execute(Agent agent,
State s)
Return the state that results from the agent moving in the given direction
in the given state.
|
java.lang.String |
toString() |
public Move(int d)
public State execute(Agent agent, State s)
public java.lang.String toString()
toString
in class java.lang.Object