Package net.sf.freecol.common.model
Interface FreeColGameObjectListener
-
- All Known Implementing Classes:
AIMain
public interface FreeColGameObjectListener
Interface for retriving information about a the creation/deletion ofFreeColGameObject
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
ownerChanged(FreeColGameObject source, Player oldOwner, Player newOwner)
Notify a listener (if any) of that an object has changed owner.void
removeFreeColGameObject(java.lang.String id)
Notify a listener (if any) of that an object has gone.void
setFreeColGameObject(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
- TheFreeColGameObject
that changed owner.oldOwner
- The old owningPlayer
.newOwner
- The new owningPlayer
.
-
-