cz.cuni.amis.pogamut.ut3.bot.impl
Class UT3AgentInfo

Package class diagram package UT3AgentInfo
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.ut3.bot.impl.UT3AgentInfo
All Implemented Interfaces:
IComponent, ILocated

public class UT3AgentInfo
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
UT3AgentInfo(UT2004Bot bot, Game game)
           
UT3AgentInfo(UT2004Bot bot, Game game, Logger log)
           
 
Method Summary
 ItemType getCurrentWeaponType()
           
 Integer getHelmetArmor()
          Tells how much helmet armor the agent is wearing.
 String getPowerUp()
          Tells which powerup the agent got.
 double getPowerUpTime()
          If the agent got a powerup, this returns the remaining time of the powerup.
 Integer getShieldBeltArmor()
          Tells how much shieldbelt armor the agent is wearing.
 Integer getThighpadArmor()
          Tells how much thighpad armor the agent is wearing.
 Integer getVestArmor()
          Tells how much vest armor the agent is wearing.
 
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

UT3AgentInfo

public UT3AgentInfo(UT2004Bot bot,
                    Game game,
                    Logger log)

UT3AgentInfo

public UT3AgentInfo(UT2004Bot bot,
                    Game game)
Method Detail

getCurrentWeaponType

public ItemType getCurrentWeaponType()
Specified by:
getCurrentWeaponType in class AgentInfo

getHelmetArmor

public Integer getHelmetArmor()
Tells how much helmet armor the agent is wearing.

Armor rating of the helmet. Maximum is 20 points of protection, removing 50% of damage or completely blocking a single headshot.

Returns:
Value of the helmet armor (0 - 20).

getVestArmor

public Integer getVestArmor()
Tells how much vest armor the agent is wearing.

Armor rating of the vest. Maximum provides 50 points of protection, removing 75% of damage.

Returns:
Value of the vest armor (0 - 50).

getThighpadArmor

public Integer getThighpadArmor()
Tells how much thighpad armor the agent is wearing.

Armor rating of the thighpad. Maximum provide 30 points of protection, removing 50% of damage.

Returns:
Value of the thighpad armor (0 - 30).

getShieldBeltArmor

public Integer getShieldBeltArmor()
Tells how much shieldbelt armor the agent is wearing.

Armor rating of the shieldbelt. Maximum provides 100 points of protection, removing 100% of damage.

Returns:
Value of the shieldbelt armor (0 - 100).

getPowerUp

public String getPowerUp()
Tells which powerup the agent got.

Type of powerups are invisibility, invulnerability, berserk and slowfield.

Returns:
name of the powerup.

getPowerUpTime

public double getPowerUpTime()
If the agent got a powerup, this returns the remaining time of the powerup.

Type of powerups are invisibility, invulnerability, berserk and slowfield.

Returns:
Time remaining for powerup bonus boost. When this value is positive, the agent has the powerup bonus boost currently activated. When this value is negative, the agent does not have the powerup activated.


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