Implements a basic patrol strategy. Given points of interest, just
travel along the cycle they define
|
__init__(self,
agentIndex,
trackedShipIndices,
trackingShipIndices,
trackingDistance,
positionOffsets,
rulesOfTheSea)
Initializes the strategy. |
source code
|
|
|
|
|
composeAction(self,
agentWorldModel)
Implements the abstract method, see documentation of the abstract
method. |
source code
|
|
|
setNextPointAndNavigationTacticIfNeeded(self,
agentWorldModel) |
source code
|
|
|
computeNextGoal(self,
agentWorldModel)
Computes the next goal for the tracking strategy. |
source code
|
|
|
computedAvgPosOfTrackedShips(self,
agentWorldModel) |
source code
|
|
|
computedAvgPosOfTrackingShips(self,
agentWorldModel) |
source code
|
|
|
setNavigationTactic(self,
agentWorldModel,
nextGoal) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map[shipIndex] = shipStartingState
|
|
|
getTrackedShipLocations(self,
agentWorldModel)
returns a list of x,y coordinates of tracked ships |
source code
|
|
|
getTrackingShipLocations(self,
agentWorldModel)
returns a list of x,y coordinates of tracking ships |
source code
|
|
|
generateNewTargets(self,
goal,
trackingPoint)
Given the new goal and vector offsets - generate new targets. |
source code
|
|
Inherited from AgentStrategy :
getOutgoingMessage ,
transmit
|