net.pakl.rl.maze
Class Action2D
java.lang.Object
net.pakl.rl.maze.Action2D
- All Implemented Interfaces:
- Action
public class Action2D
- extends java.lang.Object
- implements Action
This class represents a one-dimensional action, which could correspond to a movement vector in a 2D World
such as MazeWorld
|
Constructor Summary |
Action2D(int deltaX,
int deltaY)
|
Action2D(State2D state1,
State2D state2)
This constructor allows you to create an action based on
the difference between two states -- moving from state1 to state2 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Action2D
public Action2D(int deltaX,
int deltaY)
Action2D
public Action2D(State2D state1,
State2D state2)
- This constructor allows you to create an action based on
the difference between two states -- moving from state1 to state2
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
getDeltaX
public int getDeltaX()
getDeltaY
public int getDeltaY()
setDeltaX
public void setDeltaX()
setDeltaY
public void setDeltaY()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Action- Overrides:
hashCode in class java.lang.Object