net.pakl.rl.maze
Class Action2D

java.lang.Object
  extended by 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
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getDeltaX()
           
 int getDeltaY()
           
 int hashCode()
           
 void setDeltaX()
           
 void setDeltaY()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

Method Detail

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