Class ChangeSet.ObjectChange

    • Constructor Detail

      • ObjectChange

        public ObjectChange​(ChangeSet.See see,
                            FreeColGameObject fcgo)
        Build a new ObjectChange for a single object.
        Parameters:
        see - The visibility of this change.
        fcgo - The FreeColGameObject to update.
    • Method Detail

      • matches

        public boolean matches​(FreeColGameObject fcgo)
        Does this Change operate on the given object?
        Overrides:
        matches in class ChangeSet.Change<UpdateMessage>
        Parameters:
        fcgo - The FreeColGameObject to check.
        Returns:
        True if the object is a subject of this change.
      • isNotifiable

        public boolean isNotifiable​(Player player)
        Should a player be notified of this Change? Override in subclasses with special cases.
        Overrides:
        isNotifiable in class ChangeSet.Change<UpdateMessage>
        Parameters:
        player - The Player to consider.
        Returns:
        True if this Change should be sent.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object