Class ChangeSet.FeatureChange

    • Constructor Detail

      • FeatureChange

        public FeatureChange​(ChangeSet.See see,
                             FreeColGameObject parent,
                             FreeColObject child,
                             boolean add)
        Build a new FeatureChange.
        Parameters:
        see - The visibility of this change.
        parent - The FreeColGameObject to update.
        child - The FreeColObject value to add or remove.
        add - If true, add the child, if not, remove it.
    • Method Detail

      • 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<FeatureChangeMessage>
        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