public class StrategyBasedSaboteurAgent extends StrategyBasedAgent
ag, environment, graph, myToken, percepts, SHOW_GRAPH_WINDOW, tactics
Constructor and Description |
---|
StrategyBasedSaboteurAgent(String name,
String team)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
eis.iilang.Action |
generateAchievementAction(String focus)
Generates an action, which is meant to contribute to the achievements
Besides attacking, which is done in generateOffensiveAction(), the
Saboteur Agent can Survey or contribute to the zone-value
|
eis.iilang.Action |
generateBuyAction(String focus)
Generates a buy-Action, which purchases things for the agents according
to the focus
|
eis.iilang.Action |
generateDefensiveAction(String focus)
Generates an defensive oriented action.
|
eis.iilang.Action |
generateOffensiveAction(String focus)
Generates an offensive oriented move.
|
eis.iilang.Action |
generateZoneAction(String focus)
Generates an Action, which contributes to building a Zone If the focus is
received, it will be pursued for NUMBER_OF_STEPS_BuildZone Steps
|
void |
handleAgentSpecificMessages()
Handles the agent specific messages, which includes the messages from the
other saboteur about a successful attack or a message for the defending
saboteur agent in the zone
|
void |
preferencesRevision()
Revises the preferences of the agent.
|
broadcast, checkEnergy, clearlog, enemyNearby, enemySaboteurAt, enemyUnknownAgentAt, finalize, getDefaultStrategy, getEnvironment, getGraph, getLastStrategy, getMyToken, getPercepts, getStrategy, getZoneManager, handlePercept, loadStrategy, loadStrategy, log, reloadStrategy, setEnvironment, setGraph, setMyToken, setPercepts, setStrategy, setZoneManager, step, toString, unsurveyedEdgesNearby
addBelief, addGoal, broadcastBelief, clearBeliefs, clearGoals, containsBelief, containsGoal, createAgentFromClass, equals, getAllBeliefs, getAllPercepts, getBeliefBase, getEnvironmentInterface, getGoalBase, getMessages, getName, getTeam, hashCode, println, removeBeliefs, removeGoals, sendMessage, setEnvironmentInterface
public eis.iilang.Action generateAchievementAction(String focus)
generateAchievementAction
in class StrategyBasedAgent
focus
- public eis.iilang.Action generateBuyAction(String focus)
generateBuyAction
in class StrategyBasedAgent
focus
- public eis.iilang.Action generateZoneAction(String focus)
generateZoneAction
in class StrategyBasedAgent
focus
- public eis.iilang.Action generateOffensiveAction(String focus)
generateOffensiveAction
in class StrategyBasedAgent
focus
- public eis.iilang.Action generateDefensiveAction(String focus)
generateDefensiveAction
in class StrategyBasedAgent
focus
- public void handleAgentSpecificMessages()
handleAgentSpecificMessages
in class StrategyBasedAgent
public void preferencesRevision()
preferencesRevision
in class StrategyBasedAgent
Copyright © 2013. All Rights Reserved.