Class FireBrigadeAgent.ExtinguishFire

  • Enclosing class:
    FireBrigadeAgent

    public class FireBrigadeAgent.ExtinguishFire
    extends java.lang.Object
    • Field Detail

    • Constructor Detail

      • ExtinguishFire

        public ExtinguishFire​(ISpaceObject disaster)
        Create a new ExtinguishFire.
      • ExtinguishFire

        public ExtinguishFire​(java.lang.Object disasterid)
        Create a new ExtinguishFire.
    • Method Detail

      • checkTarget

        public boolean checkTarget()
      • checkDrop

        public boolean checkDrop​(FireBrigadeAgent ag,
                                 IGoal goal)
        Drop if this goal is only option and there are others.
      • getDisaster

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