|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is used by the MissionParser. It answers questions about the status of the world and allows to change this status.
Method Summary | |
void |
changeAdvHitpoints(java.lang.String adventurerName,
double hitPoints)
Changes the hitpoints of an adventurer by a given amount. |
boolean |
checkAdvHitpointsGE(java.lang.String adventurerName,
double hitPoints)
Tests wether an adventurer has more hitpoints than a given amount. |
boolean |
checkHasItem(java.lang.String adventurerName,
java.lang.String itemName)
Tests wether an adventurer has an item. |
boolean |
checkItemExists(java.lang.String itemName)
Tests wether an item exists. |
Method Detail |
public boolean checkItemExists(java.lang.String itemName)
itemName
- the name of the tested itempublic boolean checkHasItem(java.lang.String adventurerName, java.lang.String itemName)
adventurerName
- the name of the adventureritemName
- the name of the tested itempublic boolean checkAdvHitpointsGE(java.lang.String adventurerName, double hitPoints)
adventurerName
- the name of the adventurerhitPoints
- the number of hitpointspublic void changeAdvHitpoints(java.lang.String adventurerName, double hitPoints)
adventurerName
- the name of the adventurerhitPoints
- the change in the adventurers hitpoints
(can be negative)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |