cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric
Class AdrenalineCombo

Package class diagram package AdrenalineCombo
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot>
          extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.AdrenalineCombo
All Implemented Interfaces:
IComponent

public class AdrenalineCombo
extends SensomotoricModule<UT2004Bot>

Simplifies performance of "adrenaline combos"

Author:
Jakub Gemrot aka Jimmy

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule
act, worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
AdrenalineCombo(UT2004Bot bot, AgentInfo info)
           
AdrenalineCombo(UT2004Bot bot, AgentInfo info, Logger log)
           
 
Method Summary
 boolean canPerformCombo()
          Tells whether you have adrenaline >= 100, note that using the combo won't change the adrenaline level in the same "logic-cycle".
protected  void cleanUp()
           
 boolean performBerserk()
          Perform "Berserk" combo (bigger damage).
 boolean performDefensive()
          Perform "Defensive" combo (every few seconds adds health).
 boolean performInvisible()
          Perform "Defensive" combo (bot is invisible and is very hard to spot), note that this combo does not affects PogamutBots ;-(
 boolean performSpeed()
          Perform "Defensive" combo (bots speed is increased), not advised as it usually breaks running constants, which breaks bot navigation in turn.
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdrenalineCombo

public AdrenalineCombo(UT2004Bot bot,
                       AgentInfo info)

AdrenalineCombo

public AdrenalineCombo(UT2004Bot bot,
                       AgentInfo info,
                       Logger log)
Method Detail

canPerformCombo

public boolean canPerformCombo()
Tells whether you have adrenaline >= 100, note that using the combo won't change the adrenaline level in the same "logic-cycle".

Returns:

performBerserk

public boolean performBerserk()
Perform "Berserk" combo (bigger damage).

Returns:
whether the combo has been executed

performDefensive

public boolean performDefensive()
Perform "Defensive" combo (every few seconds adds health).

Returns:
whether the combo has been executed

performInvisible

public boolean performInvisible()
Perform "Defensive" combo (bot is invisible and is very hard to spot), note that this combo does not affects PogamutBots ;-(

Returns:
whether the combo has been executed

performSpeed

public boolean performSpeed()
Perform "Defensive" combo (bots speed is increased), not advised as it usually breaks running constants, which breaks bot navigation in turn.

Returns:
whether the combo has been executed

cleanUp

protected void cleanUp()
Overrides:
cleanUp in class AgentModule<UT2004Bot>


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