|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface and link between droid software and its associated droid hardware.
Object implementing the DroidHandle
interface
provide droid software with hardware information
such as the value of properties (e.g. hit points) and available abilities.
DroidHandle
s also allow droid software to issue commands to
hardware through the use of supported abilities.
See PlayerConstants
for a list of available ability
monikers.
Method Summary | |
Moniker[] |
getAbilities()
|
Goal |
getGoal()
|
MapPoint |
getMapBounds()
|
Moniker |
getMoniker()
|
long |
getTime()
|
Object[] |
useAbility(Moniker abilityMoniker,
Moniker targetMoniker,
Object parameter)
Commands the droid hardware to use an ability on a specified target and with a specified parameter. |
Method Detail |
public Moniker[] getAbilities()
public Goal getGoal()
public MapPoint getMapBounds()
public Moniker getMoniker()
public long getTime()
public Object[] useAbility(Moniker abilityMoniker, Moniker targetMoniker, Object parameter)
PlayerConstants
for a list of available ability monikers.
abilityMoniker
- moniker of the ability to use.targetMoniker
- moniker of target to receive ability (may be
null for certain abilities).parameter
- parameter for ability (may be null for certain
abilities.
|
MIT ACM/IEEE Programming Competition |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |