Interface FreeColGameObjectListener

  • All Known Implementing Classes:
    AIMain

    public interface FreeColGameObjectListener
    Interface for retriving information about a the creation/deletion of FreeColGameObjects.
    • 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 new FreeColGameObject.
      • 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 - The FreeColGameObject that changed owner.
        oldOwner - The old owning Player.
        newOwner - The new owning Player.