Class AmbulanceAgent.TreatVictims

  • Enclosing class:
    AmbulanceAgent

    public class AmbulanceAgent.TreatVictims
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ISpaceObject disaster
      The disaster.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreatVictims​(java.lang.Object disasterid)
      Create a new TreatVictims.
    • Field Detail

    • Constructor Detail

      • TreatVictims

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

      • getDisaster

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

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