public interface IHunterPreyEnvironmentService
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTION_DOWN
The move direction down.
|
static String |
DIRECTION_LEFT
The move direction left.
|
static String |
DIRECTION_NONE
Placeholder for "no move" action.
|
static String |
DIRECTION_RIGHT
The move direction right.
|
static String |
DIRECTION_UP
The move direction up.
|
| Modifier and Type | Method and Description |
|---|---|
IFuture<Void> |
eat(IFood food)
Perform an eat action for the avatar of the calling component.
|
IFuture<Void> |
move(String direction)
Perform a move action for the avatar of the calling component.
|
ISubscriptionIntermediateFuture<Collection<IPreyPerceivable>> |
registerPrey()
Register the calling component as a prey.
|
static final String DIRECTION_LEFT
static final String DIRECTION_RIGHT
static final String DIRECTION_UP
static final String DIRECTION_DOWN
static final String DIRECTION_NONE
ISubscriptionIntermediateFuture<Collection<IPreyPerceivable>> registerPrey()
IFuture<Void> move(String direction)
direction - The move direction.Copyright © 2012. All Rights Reserved.