org.globalse.arena.sword.algorithm
Interface WorldStatus

All Known Implementing Classes:
Mission, DummyMission

public interface WorldStatus

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

checkItemExists

public boolean checkItemExists(java.lang.String itemName)
Tests wether an item exists.
Parameters:
itemName - the name of the tested item
Returns:
true iff the item exists

checkHasItem

public boolean checkHasItem(java.lang.String adventurerName,
                            java.lang.String itemName)
Tests wether an adventurer has an item.
Parameters:
adventurerName - the name of the adventurer
itemName - the name of the tested item
Returns:
true iff adventurerName has the item

checkAdvHitpointsGE

public boolean checkAdvHitpointsGE(java.lang.String adventurerName,
                                   double hitPoints)
Tests wether an adventurer has more hitpoints than a given amount.
Parameters:
adventurerName - the name of the adventurer
hitPoints - the number of hitpoints
Returns:
true iff adventurerName has more then hitPoints hitpoints

changeAdvHitpoints

public void changeAdvHitpoints(java.lang.String adventurerName,
                               double hitPoints)
Changes the hitpoints of an adventurer by a given amount.
Parameters:
adventurerName - the name of the adventurer
hitPoints - the change in the adventurers hitpoints (can be negative)



This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)