net.sf.freecol.common.model
Interface Features


public interface Features


Method Summary
 boolean addFeature(Feature feature)
          Add the given Feature to the Features Map.
 Modifier getModifier(java.lang.String id)
          Returns the Modifier identified by id.
 boolean hasAbility(java.lang.String id)
          Returns true if the Object has the ability identified by id.
 

Method Detail

hasAbility

boolean hasAbility(java.lang.String id)
Returns true if the Object has the ability identified by id.

Parameters:
id - a String value
Returns:
a boolean value

getModifier

Modifier getModifier(java.lang.String id)
Returns the Modifier identified by id.

Parameters:
id - a String value
Returns:
a Modifier value

addFeature

boolean addFeature(Feature feature)
Add the given Feature to the Features Map. If the Feature given can not be combined with a Feature with the same ID already present, the old Feature will be replaced.

Parameters:
feature - a Feature value
Returns:
a boolean value