Class ColonyWas


  • public class ColonyWas
    extends java.lang.Object
    Helper container to remember a colony state prior to some change, and fire off any consequent property changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ColonyWas​(Colony colony)
      Record the state of a colony.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean fireChanges()
      Fire any property changes resulting from actions within a colony.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
      • colony

        private final Colony colony
      • population

        private final int population
      • productionBonus

        private final int productionBonus
      • buildQueue

        private final java.util.List<BuildableType> buildQueue
    • Constructor Detail

      • ColonyWas

        public ColonyWas​(Colony colony)
        Record the state of a colony.
        Parameters:
        colony - The Colony to remember.
    • Method Detail

      • fireChanges

        public boolean fireChanges()
        Fire any property changes resulting from actions within a colony.
        Returns:
        True if something changed.