Class FireBrigadeAgent.GoHome
- java.lang.Object
-
- jadex.bdiv3.examples.disastermanagement.firebrigade.FireBrigadeAgent.GoHome
-
- All Implemented Interfaces:
IDestinationGoal
- Enclosing class:
- FireBrigadeAgent
public static class FireBrigadeAgent.GoHome extends java.lang.Object implements IDestinationGoal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FireBrigadeAgent.GoHome
checkCreate(FireBrigadeAgent ag)
Create a new Move.boolean
checkDrop(FireBrigadeAgent 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 FireBrigadeAgent.GoHome checkCreate(FireBrigadeAgent ag)
Create a new Move.
-
checkDrop
public boolean checkDrop(FireBrigadeAgent ag)
Drop if there is another goal.
-
getDestination
public IVector2 getDestination()
Get the destination.- Specified by:
getDestination
in interfaceIDestinationGoal
- Returns:
- The destination.
-
-