Class GroundObjectChanged


  • public class GroundObjectChanged
    extends java.lang.Object
    An event where the GroundObject on a Tile has been changed.
    • Constructor Detail

      • GroundObjectChanged

        public GroundObjectChanged()
    • Method Detail

      • getTile

        public Tile getTile()
        The affected tile.
      • getPrevious

        public GroundObject getPrevious()
        The ground object that has been replaced.
      • getGroundObject

        public GroundObject getGroundObject()
        The new ground object on the tile.
      • setTile

        public void setTile​(Tile tile)
        The affected tile.
      • setPrevious

        public void setPrevious​(GroundObject previous)
        The ground object that has been replaced.
      • setGroundObject

        public void setGroundObject​(GroundObject groundObject)
        The new ground object on the tile.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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