Package net.sf.colossus.game
Interface Caretaker.ChangeListener
-
- Enclosing class:
- Caretaker
public static interface Caretaker.ChangeListenerCallback interface for listening to changes to the numbers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreatureTypeAvailabilityUpdated(CreatureType type, int availableCount)Called whenever a change to the availability of a single creature type occurs.voidcreatureTypeCountsUpdated(CreatureType type)Called when a change was done on either avail or dead, or both.voidcreatureTypeDeadCountUpdated(CreatureType type, int deadCount)Called whenever a change to the number of dead creatures of a single type occurs.voidfullUpdate()Called after large changes when listeners should perform an update of all inferred information and/or displays.
-
-
-
Method Detail
-
creatureTypeAvailabilityUpdated
void creatureTypeAvailabilityUpdated(CreatureType type, int availableCount)
Called whenever a change to the availability of a single creature type occurs. This is not called by theCaretakeron a full update but only on smaller changes.- Parameters:
type- The creature type for which the count is changed.availableCount- The new number of available creatures of this type.
-
creatureTypeDeadCountUpdated
void creatureTypeDeadCountUpdated(CreatureType type, int deadCount)
Called whenever a change to the number of dead creatures of a single type occurs. This is not called by theCaretakeron a full update but only on smaller changes.- Parameters:
type- The creature type for which the count is changed.deadCount- The new number of dead creatures of this type.
-
creatureTypeCountsUpdated
void creatureTypeCountsUpdated(CreatureType type)
Called when a change was done on either avail or dead, or both.- Parameters:
type- The creature type for which the count is changed.
-
fullUpdate
void fullUpdate()
Called after large changes when listeners should perform an update of all inferred information and/or displays.
-
-