cz.cuni.amis.pogamut.ut2004.hideandseek.bot
Class UT2004BotHSController<BOT extends UT2004Bot>

Package class diagram package UT2004BotHSController
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController<BOT>
      extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController<BOT>
          extended by cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController<BOT>
              extended by cz.cuni.amis.pogamut.ut2004.hideandseek.bot.UT2004BotHSController<BOT>
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.agent.module.IAgentLogic<cz.cuni.amis.pogamut.base.agent.module.LogicModule>, IUT2004BotController<BOT>, IUT2004BotLogicController<BOT,cz.cuni.amis.pogamut.base.agent.module.LogicModule>

public class UT2004BotHSController<BOT extends UT2004Bot>
extends UT2004BotModuleController<BOT>


Field Summary
protected  HSBotModule hide
           
protected  HSEvents hsEvents
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController
act, aStar, body, combo, config, ctf, descriptors, draw, fwMap, game, getBackToNavGraph, info, items, levelGeometryModule, listenerRegistrator, move, navBuilder, navigation, navMeshModule, navPoints, pathExecutor, pathPlanner, players, random, raycasting, runStraight, senses, shoot, stats, visibility, weaponPrefs, weaponry, world
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController
logicModule
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController
bot, log, USER_LOG_CATEGORY_ID
 
Constructor Summary
UT2004BotHSController()
           
 
Method Summary
 HSBotModule getHideAndSeek()
          Hide and seek module providing details about the game.
protected  void hsAssignSeeker(HSAssignSeeker event, boolean me)
          SEEKER role has been just assigned to some bot.
protected  void hsBotStateChanged(HSBotStateChanged event, boolean me)
          Some bot HSBotState has been updated.
protected  void hsPlayerScoreChanged(HSPlayerScoreChanged event, boolean me)
          Some player (runner/seeker) score has just changed, you may examine the reason within HSPlayerScoreChanged.getScoreChangeReason(), see HSScoreChangeReason.
protected  void hsRoundEnd(HSRoundEnd event)
          Round has just ended, you may use this event to cleanup your data-structures.
protected  void hsRoundStart(HSRoundStart event)
          New round has just started, you may use this event to initialize your data-structures.
protected  void hsRoundState(HSRoundState event)
          Round state update has been received.
protected  void hsRunnerCaptured(HSRunnerCaptured event, boolean me)
          Some RUNNER has just been captured by the SEEKER, i.e., seeker has spotted the runner and made it to the safe-area before the runner.
protected  void hsRunnerFouled(HSRunnerFouled event, boolean me)
          Some RUNNER has just been fouled-out because it stepped into the restricted-area while it was activated.
protected  void hsRunnerSafe(HSRunnerSafe event, boolean me)
          Some RUNNER has just made it to the safe-area.
protected  void hsRunnerSpotted(HSRunnerSpotted event, boolean me)
          Some RUNNER has just been spotted by the SEEKER.
protected  void hsRunnerSurvived(HSRunnerSurvived event, boolean me)
          Some RUNNER has just survived the round.
protected  void initializeModules(BOT bot)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController
botAgentDown, finishControllerInitialization, getAStar, getBody, getCombo, getConfig, getDescriptors, getFwMap, getGame, getInfo, getItems, getLevelGeometry, getLevelGeometryModule, getMove, getNavBuilder, getNavigation, getNavMesh, getNavMeshModule, getPathExecutor, getPathPlanner, getPlayers, getRandom, getRaycasting, getSenses, getShoot, getStats, getVisibility, getWeaponPrefs, getWeaponry, getWorld, initializeController, initializeListeners, initializePathFinding
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotLogicController
beforeFirstLogic, getLogicInitializeTime, getLogicShutdownTime, initializeLogic, logic, logicInitialize, logicShutdown
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotController
botFirstSpawn, botInitialized, botKilled, botShutdown, getAct, getBot, getInitializeCommand, getLog, getName, getPassword, getWorldView, prepareBot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.bot.IUT2004BotController
botFirstSpawn, botInitialized, botKilled, botShutdown, getAct, getBot, getInitializeCommand, getLog, getPassword, getWorldView, prepareBot
 

Field Detail

hide

protected HSBotModule hide

hsEvents

protected HSEvents hsEvents
Constructor Detail

UT2004BotHSController

public UT2004BotHSController()
Method Detail

initializeModules

protected void initializeModules(BOT bot)
Overrides:
initializeModules in class UT2004BotModuleController<BOT extends UT2004Bot>

hsRunnerSurvived

protected void hsRunnerSurvived(HSRunnerSurvived event,
                                boolean me)
Some RUNNER has just survived the round.

This event is triggered at the end of the round for every RUNNER that has not been FOULED, CAPTURED and did not make it to SAFE area.

Parameters:
event -

hsRunnerSpotted

protected void hsRunnerSpotted(HSRunnerSpotted event,
                               boolean me)
Some RUNNER has just been spotted by the SEEKER.

Parameters:
event -

hsRunnerSafe

protected void hsRunnerSafe(HSRunnerSafe event,
                            boolean me)
Some RUNNER has just made it to the safe-area.

Parameters:
event -

hsRunnerFouled

protected void hsRunnerFouled(HSRunnerFouled event,
                              boolean me)
Some RUNNER has just been fouled-out because it stepped into the restricted-area while it was activated.

Parameters:
event -
me - whether this event speaks about your bot

hsRunnerCaptured

protected void hsRunnerCaptured(HSRunnerCaptured event,
                                boolean me)
Some RUNNER has just been captured by the SEEKER, i.e., seeker has spotted the runner and made it to the safe-area before the runner.

Parameters:
event -
me - whether this event speaks about your bot

hsRoundState

protected void hsRoundState(HSRoundState event)
Round state update has been received.

Parameters:
event -

hsRoundStart

protected void hsRoundStart(HSRoundStart event)
New round has just started, you may use this event to initialize your data-structures.

Parameters:
event -

hsRoundEnd

protected void hsRoundEnd(HSRoundEnd event)
Round has just ended, you may use this event to cleanup your data-structures.

Parameters:
event -

hsPlayerScoreChanged

protected void hsPlayerScoreChanged(HSPlayerScoreChanged event,
                                    boolean me)
Some player (runner/seeker) score has just changed, you may examine the reason within HSPlayerScoreChanged.getScoreChangeReason(), see HSScoreChangeReason.

Parameters:
event -
me - whether this event speaks about your bot

hsBotStateChanged

protected void hsBotStateChanged(HSBotStateChanged event,
                                 boolean me)
Some bot HSBotState has been updated.

Parameters:
event -
me - whether this event speaks about your bot

hsAssignSeeker

protected void hsAssignSeeker(HSAssignSeeker event,
                              boolean me)
SEEKER role has been just assigned to some bot.

Parameters:
event -
me - whether this event speaks about your bot

getHideAndSeek

public HSBotModule getHideAndSeek()
Hide and seek module providing details about the game.

Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.