View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor;
2   
3   /**
4    * Health descriptor provides an additional information about health items like
5    * vials, medkits etc.
6    * 
7    * @author Ondrej
8    */
9   public class HealthDescriptor extends ItemDescriptor {
10  
11  	private boolean superHealth;
12  
13  	@Override
14  	public String toString() {
15  		return "HealthDescriptor[pickupType=" + getPickupType() + ", inventoryType = " + getInventoryType() + ", amount=" + getAmount() + "]";
16  	}
17  
18  	/**
19  	 * If this health can heal above maximum health (usually above 100).
20  	 * 
21  	 * @return superHealth
22  	 */
23  	public boolean isSuperHealth() {
24  		return superHealth;
25  	}
26  
27  }