Class CommanderAgent.HandleDisaster

  • Enclosing class:
    CommanderAgent

    public class CommanderAgent.HandleDisaster
    extends java.lang.Object
    • Constructor Detail

      • HandleDisaster

        public HandleDisaster​(ISpaceObject disaster)
        Create a new HandleDisaster.
    • Method Detail

      • checkTarget

        public boolean checkTarget()
      • getDisaster

        public ISpaceObject getDisaster()
        Get the disaster.
        Returns:
        The disaster.
      • hashCode

        public int hashCode()
        Get the hashcode.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if equal to other goal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The other object.
        Returns:
        True, if equal.
      • finished

        protected void finished()
        Called when goal is finished.