cz.cuni.amis.pogamut.ut3.communication.messages
Class UT3ItemType

Package class diagram package UT3ItemType
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
      extended by cz.cuni.amis.pogamut.ut3.communication.messages.UT3ItemType
All Implemented Interfaces:
Serializable, Comparable<cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType>

public class UT3ItemType
extends cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

Author:
Evers
See Also:
Serialized Form

Nested Class Summary
static class UT3ItemType.UT3Group
          List of all item groups.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category, cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Group
 
Field Summary
static UT3ItemType ARMOR_HELMET
          Helmet.
static UT3ItemType ARMOR_SHIELD_BELT
          Shieldbelt.
static UT3ItemType ARMOR_THIGHPADS
          Thighpads.
static UT3ItemType ARMOR_VEST
          Vest.
static UT3ItemType AVRIL
          AVRIL weapon
static UT3ItemType AVRIL_AMMO
          AVRIL ammo
static UT3ItemType BERSERK_PACK
           
static UT3ItemType BIO_RIFLE
          BioRifle weapon.
static UT3ItemType BIO_RIFLE_AMMO
          BioRifle ammo.
static UT3ItemType BIO_RIFLE_PROJECTILE
          BioRifle projectile.
static UT3ItemType EMP_MINE
          EMP Mine
static UT3ItemType EMP_MINE_AMMO
          EMP Mine Ammo
static UT3ItemType ENERGY_SHIELD
          EnergyShield
static UT3ItemType ENERGY_SHIELD_AMMO
          EnergyShield Ammo
static UT3ItemType ENFORCER
          Enforcer weapon.
static UT3ItemType ENFORCER_AMMO
          Enforcer ammo.
static UT3ItemType FLAK_CANNON
          FlakCannon weapon.
static UT3ItemType FLAK_CANNON_AMMO
          FlakCannon ammo.
static UT3ItemType FLAK_CANNON_CHUNK
          FlakCannon chunk projectile.
static UT3ItemType FLAK_CANNON_SHELL
          FlakCannon shell projectile.
static cz.cuni.amis.utils.maps.HashMapSet<UT3ItemType.UT3Group,cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType> GROUPS
          Contains item types that belongs to their groups.
static UT3ItemType HEALTH_VIAL
          Health vial.
static UT3ItemType IMPACT_HAMMER
          ImpactHammer weapon.
static UT3ItemType IMPACT_HAMMER_AMMO
          ImpactHammer ammo - sent when the bot is spawned.
static UT3ItemType INVISIBILITY
          Invisibility
static UT3ItemType INVULNERABILITY
          Invulnerability
static UT3ItemType JUMP_BOOTS
           
static UT3ItemType KEY
          Key.
static UT3ItemType LINK_GENERATOR
          Link generator
static UT3ItemType LINK_GENERATOR_AMMO
          Link generator Ammo
static UT3ItemType LINK_GUN
          LinkGun weapon.
static UT3ItemType LINK_GUN_AMMO
          LinkGun ammo.
static UT3ItemType LINK_GUN_PROJECTILE
          LinkGun projectile.
static UT3ItemType MEDIUM_HEALTH
          Health kit.
static UT3ItemType NONE
          No UT3ItemType
protected static Map<String,cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType> protos
          Map of all registered ItemType prototypes.
static UT3ItemType REDEEMER
          SniperRifle weapon (classic sniper weapon).
static UT3ItemType REDEEMER_AMMO
           
static UT3ItemType REDEEMER_PROJECTILE
           
static UT3ItemType ROCKET_LAUNCHER
          RocketLauncher weapon.
static UT3ItemType ROCKET_LAUNCHER_AMMO
          RocketLauncher ammo.
static UT3ItemType ROCKET_LAUNCHER_PROJECTILE
          RocketLauncher projectile.
static UT3ItemType SHAPED_CHARGE
          ShapedCharge
static UT3ItemType SHAPED_CHARGE_AMMO
          ShapedCharge Ammo
static UT3ItemType SHOCK_RIFLE
          ShockRifle weapon.
static UT3ItemType SHOCK_RIFLE_AMMO
          ShockRifle ammo.
static UT3ItemType SHOCK_RIFLE_PROJECTILE
          ShockRifle projectile.
static UT3ItemType SLOW_FIELD
          Slow Field
static UT3ItemType SLOW_VOLUME
          Slow Volume
static UT3ItemType SLOW_VOLUME_AMMO
          Slow Volume Ammo
static UT3ItemType SLOW_VOLUME_CONTENT
          Slow Volume content, this is the field itself
static UT3ItemType SNIPER_RIFLE
          SniperRifle weapon (classic sniper weapon).
static UT3ItemType SNIPER_RIFLE_AMMO
          SniperRifle ammo.
static UT3ItemType SPIDERMINE_TRAP
          SpiderMine Trap
static UT3ItemType SPIDERMINE_TRAP_AMMO
          SpiderMine Trap Ammo
static UT3ItemType STINGER_MINIGUN
          Minigun weapon.
static UT3ItemType STINGER_MINIGUN_AMMO
          Minigun ammo.
static UT3ItemType STINGER_MINIGUN_SHARD
           
static UT3ItemType SUPER_HEALTH_PACK
          SuperHealth charger.
static UT3ItemType TRANSLOCATOR
          Translocator.
static UT3ItemType TRANSLOCATOR_PROJECTILE
          Translocator Beacon.
static UT3ItemType U_DAMAGE_PACK
          UDamage bonus (damage multiplier).
static UT3ItemType WEAPON_LOCKER
          WeaponLocker.
static UT3ItemType XRAY_VOLUME
          XRay Volume
static UT3ItemType XRAY_VOLUME_AMMO
          XRay Ammo
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
CATEGORIES
 
Constructor Summary
UT3ItemType(String name)
          Public constructor - creates ItemType of the EXTRA category and Group OTHER.
 
Method Summary
 int compareTo(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType o)
           
 boolean equals(Object obj)
           
static UT3ItemType getAmmoForWeapon(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType itemType)
           
 cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category getCategory()
           
 UT3ItemType.UT3Group getGroup()
           
static cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType getItemType(String utName)
          Retrieves an ItemType for the specified item type name.
 String getName()
           
static UT3ItemType getWeaponForAmmo(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType itemType)
           
static UT3ItemType getWeaponItemType(String str)
          Attempts to recognize the weapon you are currently holding...
static UT3ItemType getWeaponItemType(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)
           
 int hashCode()
           
static boolean isDeployable(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType item)
          Check if this weapon is a deployable.
static UT3ItemType MakePrototype(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category category, UT3ItemType.UT3Group group, String[] utNames)
          Proto-constructor.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

protos

protected static Map<String,cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType> protos
Map of all registered ItemType prototypes.


GROUPS

public static final cz.cuni.amis.utils.maps.HashMapSet<UT3ItemType.UT3Group,cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType> GROUPS
Contains item types that belongs to their groups.


TRANSLOCATOR

public static final UT3ItemType TRANSLOCATOR
Translocator.


TRANSLOCATOR_PROJECTILE

public static final UT3ItemType TRANSLOCATOR_PROJECTILE
Translocator Beacon.


IMPACT_HAMMER

public static final UT3ItemType IMPACT_HAMMER
ImpactHammer weapon.


IMPACT_HAMMER_AMMO

public static final UT3ItemType IMPACT_HAMMER_AMMO
ImpactHammer ammo - sent when the bot is spawned.


ENFORCER

public static final UT3ItemType ENFORCER
Enforcer weapon.


ENFORCER_AMMO

public static final UT3ItemType ENFORCER_AMMO
Enforcer ammo.


BIO_RIFLE

public static final UT3ItemType BIO_RIFLE
BioRifle weapon.


BIO_RIFLE_AMMO

public static final UT3ItemType BIO_RIFLE_AMMO
BioRifle ammo.


BIO_RIFLE_PROJECTILE

public static final UT3ItemType BIO_RIFLE_PROJECTILE
BioRifle projectile.


SHOCK_RIFLE

public static final UT3ItemType SHOCK_RIFLE
ShockRifle weapon.


SHOCK_RIFLE_AMMO

public static final UT3ItemType SHOCK_RIFLE_AMMO
ShockRifle ammo.


SHOCK_RIFLE_PROJECTILE

public static final UT3ItemType SHOCK_RIFLE_PROJECTILE
ShockRifle projectile.


LINK_GUN

public static final UT3ItemType LINK_GUN
LinkGun weapon.


LINK_GUN_AMMO

public static final UT3ItemType LINK_GUN_AMMO
LinkGun ammo.


LINK_GUN_PROJECTILE

public static final UT3ItemType LINK_GUN_PROJECTILE
LinkGun projectile.


STINGER_MINIGUN

public static final UT3ItemType STINGER_MINIGUN
Minigun weapon.


STINGER_MINIGUN_AMMO

public static final UT3ItemType STINGER_MINIGUN_AMMO
Minigun ammo.


STINGER_MINIGUN_SHARD

public static final UT3ItemType STINGER_MINIGUN_SHARD

FLAK_CANNON

public static final UT3ItemType FLAK_CANNON
FlakCannon weapon.


FLAK_CANNON_AMMO

public static final UT3ItemType FLAK_CANNON_AMMO
FlakCannon ammo.


FLAK_CANNON_CHUNK

public static final UT3ItemType FLAK_CANNON_CHUNK
FlakCannon chunk projectile.


FLAK_CANNON_SHELL

public static final UT3ItemType FLAK_CANNON_SHELL
FlakCannon shell projectile.


AVRIL

public static final UT3ItemType AVRIL
AVRIL weapon


AVRIL_AMMO

public static final UT3ItemType AVRIL_AMMO
AVRIL ammo


ROCKET_LAUNCHER

public static final UT3ItemType ROCKET_LAUNCHER
RocketLauncher weapon.


ROCKET_LAUNCHER_AMMO

public static final UT3ItemType ROCKET_LAUNCHER_AMMO
RocketLauncher ammo.


ROCKET_LAUNCHER_PROJECTILE

public static final UT3ItemType ROCKET_LAUNCHER_PROJECTILE
RocketLauncher projectile.


SNIPER_RIFLE

public static final UT3ItemType SNIPER_RIFLE
SniperRifle weapon (classic sniper weapon).


SNIPER_RIFLE_AMMO

public static final UT3ItemType SNIPER_RIFLE_AMMO
SniperRifle ammo.


REDEEMER

public static final UT3ItemType REDEEMER
SniperRifle weapon (classic sniper weapon).


REDEEMER_AMMO

public static final UT3ItemType REDEEMER_AMMO

REDEEMER_PROJECTILE

public static final UT3ItemType REDEEMER_PROJECTILE

MEDIUM_HEALTH

public static final UT3ItemType MEDIUM_HEALTH
Health kit.


HEALTH_VIAL

public static final UT3ItemType HEALTH_VIAL
Health vial.


SUPER_HEALTH_PACK

public static final UT3ItemType SUPER_HEALTH_PACK
SuperHealth charger.


ARMOR_HELMET

public static final UT3ItemType ARMOR_HELMET
Helmet.


ARMOR_SHIELD_BELT

public static final UT3ItemType ARMOR_SHIELD_BELT
Shieldbelt.


ARMOR_THIGHPADS

public static final UT3ItemType ARMOR_THIGHPADS
Thighpads.


ARMOR_VEST

public static final UT3ItemType ARMOR_VEST
Vest.


U_DAMAGE_PACK

public static final UT3ItemType U_DAMAGE_PACK
UDamage bonus (damage multiplier).


BERSERK_PACK

public static final UT3ItemType BERSERK_PACK

JUMP_BOOTS

public static final UT3ItemType JUMP_BOOTS

XRAY_VOLUME

public static final UT3ItemType XRAY_VOLUME
XRay Volume


XRAY_VOLUME_AMMO

public static final UT3ItemType XRAY_VOLUME_AMMO
XRay Ammo


SPIDERMINE_TRAP

public static final UT3ItemType SPIDERMINE_TRAP
SpiderMine Trap


SPIDERMINE_TRAP_AMMO

public static final UT3ItemType SPIDERMINE_TRAP_AMMO
SpiderMine Trap Ammo


ENERGY_SHIELD

public static final UT3ItemType ENERGY_SHIELD
EnergyShield


ENERGY_SHIELD_AMMO

public static final UT3ItemType ENERGY_SHIELD_AMMO
EnergyShield Ammo


EMP_MINE

public static final UT3ItemType EMP_MINE
EMP Mine


EMP_MINE_AMMO

public static final UT3ItemType EMP_MINE_AMMO
EMP Mine Ammo


LINK_GENERATOR

public static final UT3ItemType LINK_GENERATOR
Link generator


LINK_GENERATOR_AMMO

public static final UT3ItemType LINK_GENERATOR_AMMO
Link generator Ammo


SHAPED_CHARGE

public static final UT3ItemType SHAPED_CHARGE
ShapedCharge


SHAPED_CHARGE_AMMO

public static final UT3ItemType SHAPED_CHARGE_AMMO
ShapedCharge Ammo


SLOW_VOLUME

public static final UT3ItemType SLOW_VOLUME
Slow Volume


SLOW_VOLUME_CONTENT

public static final UT3ItemType SLOW_VOLUME_CONTENT
Slow Volume content, this is the field itself


SLOW_VOLUME_AMMO

public static final UT3ItemType SLOW_VOLUME_AMMO
Slow Volume Ammo


SLOW_FIELD

public static final UT3ItemType SLOW_FIELD
Slow Field


INVISIBILITY

public static final UT3ItemType INVISIBILITY
Invisibility


INVULNERABILITY

public static final UT3ItemType INVULNERABILITY
Invulnerability


WEAPON_LOCKER

public static final UT3ItemType WEAPON_LOCKER
WeaponLocker.


KEY

public static final UT3ItemType KEY
Key.


NONE

public static final UT3ItemType NONE
No UT3ItemType

Constructor Detail

UT3ItemType

public UT3ItemType(String name)
Public constructor - creates ItemType of the EXTRA category and Group OTHER.

Parameters:
name - Type name from GB engine.
Method Detail

getWeaponForAmmo

public static UT3ItemType getWeaponForAmmo(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType itemType)

getAmmoForWeapon

public static UT3ItemType getAmmoForWeapon(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType itemType)

toString

public String toString()
Specified by:
toString in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

getCategory

public cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category getCategory()
Specified by:
getCategory in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

getGroup

public UT3ItemType.UT3Group getGroup()
Specified by:
getGroup in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

equals

public boolean equals(Object obj)
Specified by:
equals in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

hashCode

public int hashCode()
Specified by:
hashCode in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

compareTo

public int compareTo(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType o)

MakePrototype

public static UT3ItemType MakePrototype(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category category,
                                        UT3ItemType.UT3Group group,
                                        String[] utNames)
Proto-constructor.

Parameters:
category - Category of the item.
group - Group of the item.
utNames - Names of the item in UT engine.
Returns:
Prototype of known ItemType.

getWeaponItemType

public static UT3ItemType getWeaponItemType(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId id)

getWeaponItemType

public static UT3ItemType getWeaponItemType(String str)
Attempts to recognize the weapon you are currently holding...

See Self.getWeapon().

May return null == weapon was not recognized. ALWAYS CHECK!

Returns:

isDeployable

public static boolean isDeployable(cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType item)
Check if this weapon is a deployable.

Parameters:
item - item to be checked.

getName

public String getName()
Specified by:
getName in class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType

getItemType

public static cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType getItemType(String utName)
Retrieves an ItemType for the specified item type name.

Parameters:
utName - e.g. Item.getType()
Returns:


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