public class RequestMove
extends java.lang.Object
implements jadex.bridge.fipa.IComponentAction
| Modifier and Type | Field and Description |
|---|---|
protected Creature |
creature
The creature.
|
protected java.lang.String |
direction
The movement direction.
|
static java.lang.String |
DIRECTION_DOWN
Predefined value "down" for slot direction.
|
static java.lang.String |
DIRECTION_LEFT
Predefined value "left" for slot direction.
|
static java.lang.String |
DIRECTION_RIGHT
Predefined value "right" for slot direction.
|
static java.lang.String |
DIRECTION_UP
Predefined value "up" for slot direction.
|
| Constructor and Description |
|---|
RequestMove()
Default Constructor.
|
RequestMove(Creature creature,
java.lang.String direction)
Init Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Creature |
getCreature()
Get the creature of this RequestMove.
|
java.lang.String |
getDirection()
Get the direction of this RequestMove.
|
void |
setCreature(Creature creature)
Set the creature of this RequestMove.
|
void |
setDirection(java.lang.String direction)
Set the direction of this RequestMove.
|
java.lang.String |
toString()
Get a string representation of this RequestMove.
|
public static final java.lang.String DIRECTION_UP
public static final java.lang.String DIRECTION_DOWN
public static final java.lang.String DIRECTION_LEFT
public static final java.lang.String DIRECTION_RIGHT
protected Creature creature
protected java.lang.String direction
public RequestMove()
RequestMove.public RequestMove(Creature creature, java.lang.String direction)
creature - direction - public Creature getCreature()
public void setCreature(Creature creature)
creature - the value to be setpublic java.lang.String getDirection()
public void setDirection(java.lang.String direction)
direction - the value to be setpublic java.lang.String toString()
toString in class java.lang.Object