Class AmbulanceAgent.GoHome
- java.lang.Object
-
- jadex.bdiv3.examples.disastermanagement.ambulance.AmbulanceAgent.GoHome
-
- All Implemented Interfaces:
IDestinationGoal
- Enclosing class:
- AmbulanceAgent
public static class AmbulanceAgent.GoHome extends java.lang.Object implements IDestinationGoal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AmbulanceAgent.GoHome
checkCreate(AmbulanceAgent ag)
Create a new Move.boolean
checkDrop(AmbulanceAgent ag)
Drop if there is another goal.IVector2
getDestination()
Get the destination.
-
-
-
Field Detail
-
home
protected IVector2 home
The home position.
-
-
Constructor Detail
-
GoHome
public GoHome(IVector2 home)
Create a new CarryOre.
-
-
Method Detail
-
checkCreate
public static AmbulanceAgent.GoHome checkCreate(AmbulanceAgent ag)
Create a new Move.
-
checkDrop
public boolean checkDrop(AmbulanceAgent ag)
Drop if there is another goal.
-
getDestination
public IVector2 getDestination()
Get the destination.- Specified by:
getDestination
in interfaceIDestinationGoal
- Returns:
- The destination.
-
-