Package net.sf.freecol.common.model
Interface FreeColGameObjectListener
-
- All Known Implementing Classes:
AIMain
public interface FreeColGameObjectListenerInterface for retriving information about a the creation/deletion ofFreeColGameObjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidownerChanged(FreeColGameObject source, Player oldOwner, Player newOwner)Notify a listener (if any) of that an object has changed owner.voidremoveFreeColGameObject(java.lang.String id)Notify a listener (if any) of that an object has gone.voidsetFreeColGameObject(java.lang.String id, FreeColGameObject fcgo)Notify a listener (if any) of a new object.
-
-
-
Method Detail
-
setFreeColGameObject
void setFreeColGameObject(java.lang.String id, FreeColGameObject fcgo)Notify a listener (if any) of a new object.- Parameters:
id- The object identifier.fcgo- The newFreeColGameObject.
-
removeFreeColGameObject
void removeFreeColGameObject(java.lang.String id)
Notify a listener (if any) of that an object has gone.- Parameters:
id- The object identifier.
-
ownerChanged
void ownerChanged(FreeColGameObject source, Player oldOwner, Player newOwner)
Notify a listener (if any) of that an object has changed owner.- Parameters:
source- TheFreeColGameObjectthat changed owner.oldOwner- The old owningPlayer.newOwner- The new owningPlayer.
-
-