cz.cuni.amis.pogamut.ut2004.agent.module.sensor
Class UT2004AgentInfo

Package class diagram package UT2004AgentInfo
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
          extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo
              extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.UT2004AgentInfo
All Implemented Interfaces:
IComponent, ILocated

public class UT2004AgentInfo
extends AgentInfo


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo
AT_LOCATION_EPSILON, CLOSE_ENOUGH_EPSILON, game, IS_FACING_ANGLE, NONE_WEAPON_ID, TEAM_BLUE, TEAM_GOLD, TEAM_GREEN, TEAM_NONE, TEAM_RED
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule
worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
UT2004AgentInfo(UT2004Bot bot)
          Constructor.
UT2004AgentInfo(UT2004Bot bot, Game game)
          Constructor.
UT2004AgentInfo(UT2004Bot bot, Game game, Logger log)
          Constructor.
 
Method Summary
 ItemType getCurrentWeaponType()
          Returns type of the weapon the agent is currently holding (or null if no such weapon exists).
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo
_getCurrentVolumeTerminalVelocity, atLocation, atLocation, atLocation, atLocation, cleanUp, getAccelerationRate, getAdrenaline, getAirControl, getAirSpeed, getArmor, getBaseSpeed, getBotName, getConfig, getCurrentAmmo, getCurrentSecondaryAmmo, getCurrentVolumeDamagePerSec, getCurrentVolumeDamageType, getCurrentVolumeFluidFriction, getCurrentVolumeGroundFriction, getCurrentWeapon, getCurrentWeaponName, getCurrentZoneGravity, getCurrentZoneVelocity, getDamageScaling, getDeaths, getDistance, getDodgeSpeedFactor, getDodgeZBoost, getFallSpeed, getFloorLocation, getHealth, getHighArmor, getHorizontalRotation, getId, getJumpZBoost, getKills, getLadderSpeed, getLocation, getLowArmor, getName, getNearestItem, getNearestNavPoint, getNearestNavPoint, getNearestNavPoint, getNearestNavPoint, getNearestPlayer, getNearestVisibleItem, getNearestVisibleNavPoint, getNearestVisiblePlayer, getRemainingUDamageTime, getRotation, getScore, getSelf, getSuicides, getTeam, getTeamScore, getTime, getTimeDelta, getVelocity, getWaterSpeed, hasArmor, hasFastFire, hasHighArmor, hasInvisibility, hasLowArmor, hasRegeneration, hasSpeed, hasUDamage, hasWeapon, isAdrenalineFull, isAdrenalineSufficient, isAtLocation, isAtLocation, isCrouched, isCurrentVolumeAffectingProjectiles, isCurrentVolumeBanningInventory, isCurrentVolumeDestructive, isCurrentVolumePainCausing, isCurrentVolumeWater, isCurrentZoneNeutral, isEnemy, isEnemy, isFacing, isFacing, isFriend, isFriend, isHealthy, isMoving, isOnNavGraph, isPrimaryShooting, isSecondaryShooting, isShooting, isSuperHealthy, isTouchingGround, isWalking
 
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

UT2004AgentInfo

public UT2004AgentInfo(UT2004Bot bot)
Constructor. Setups the memory module based on bot's world view.

Parameters:
game - game info module

UT2004AgentInfo

public UT2004AgentInfo(UT2004Bot bot,
                       Game game)
Constructor. Setups the memory module based on bot's world view.

Parameters:
bot - owner of the module
game - game info module

UT2004AgentInfo

public UT2004AgentInfo(UT2004Bot bot,
                       Game game,
                       Logger log)
Constructor. Setups the memory module based on bot's world view.

Parameters:
bot - owner of the module
game - game info module
log - Logger to be used for logging runtime/debug info. Note: If null is provided, this memory module creates it's own logger.
Method Detail

getCurrentWeaponType

public ItemType getCurrentWeaponType()
Description copied from class: AgentInfo
Returns type of the weapon the agent is currently holding (or null if no such weapon exists).

Specified by:
getCurrentWeaponType in class AgentInfo
Returns:


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