|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
cz.cuni.amis.pogamut.ut2004.communication.messages.UT2004ItemType
public class UT2004ItemType
Nested Class Summary | |
---|---|
static class |
UT2004ItemType.UT2004Group
List of all item groups. |
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType |
---|
ItemType.Category, ItemType.Group |
Field Summary | |
---|---|
static UT2004ItemType |
ADRENALINE_PACK
Adrenaline capsule. |
static UT2004ItemType |
ASSAULT_RIFLE
AssaultRifle weapon. |
static UT2004ItemType |
ASSAULT_RIFLE_AMMO
AssaultRifle ammo. |
static UT2004ItemType |
ASSAULT_RIFLE_GRENADE
AssaultRifle secondary ammo. |
static UT2004ItemType |
ASSAULT_RIFLE_PROJECTILE
AssaultRifle projectile. |
static UT2004ItemType |
BIO_RIFLE
BioRifle weapon. |
static UT2004ItemType |
BIO_RIFLE_AMMO
BioRifle ammo. |
static UT2004ItemType |
BIO_RIFLE_PROJECTILE
BioRifle projectile. |
static UT2004ItemType |
FLAK_CANNON
FlakCannon weapon. |
static UT2004ItemType |
FLAK_CANNON_AMMO
FlakCannon ammo. |
static UT2004ItemType |
FLAK_CANNON_CHUNK
FlakCannon chunk projectile. |
static UT2004ItemType |
FLAK_CANNON_SHELL
FlakCannon shell projectile. |
static cz.cuni.amis.utils.maps.HashMapSet<UT2004ItemType.UT2004Group,ItemType> |
GROUPS
Contains item types that belongs to their groups. |
static UT2004ItemType |
HEALTH_PACK
Health kit. |
static UT2004ItemType |
ION_PAINTER
IonPainter weapon. |
static UT2004ItemType |
ION_PAINTER_AMMO
IonPainter ammo. |
static UT2004ItemType |
KEY
Key. |
static UT2004ItemType |
LIGHTNING_GUN
LightningGun weapon (modern sniper weapon). |
static UT2004ItemType |
LIGHTNING_GUN_AMMO
LightningGun ammo. |
static UT2004ItemType |
LINK_GUN
LinkGun weapon. |
static UT2004ItemType |
LINK_GUN_AMMO
LinkGun ammo. |
static UT2004ItemType |
LINK_GUN_PROJECTILE
LinkGun projectile. |
static UT2004ItemType |
MINI_HEALTH_PACK
Health vial. |
static UT2004ItemType |
MINIGUN
Minigun weapon. |
static UT2004ItemType |
MINIGUN_AMMO
Minigun ammo. |
protected String |
name
Name of the item in UT engine. |
static UT2004ItemType |
NONE
No ItemType |
static UT2004ItemType |
ONS_AVRIL
AVRiL Onslaught weapon. |
static UT2004ItemType |
ONS_AVRIL_AMMO
AVRiL ammo. |
static UT2004ItemType |
ONS_AVRIL_PROJECTILE
AVRiL projectile. |
static UT2004ItemType |
ONS_GRENADE_LAUNCHER
GrenadeLauncher Onslaught weapon. |
static UT2004ItemType |
ONS_GRENADE_LAUNCHER_AMMO
GrenadeLauncher ammo. |
static UT2004ItemType |
ONS_GRENADE_LAUNCHER_PROJECTILE
GrenadeLauncher ammo. |
static UT2004ItemType |
ONS_MINE_LAYER
MineLayer Onslaught weapon. |
static UT2004ItemType |
ONS_MINE_LAYER_AMMO
MineLayer ammo. |
static UT2004ItemType |
ONS_MINE_LAYER_PROJECTILE
MineLayer projectile. |
static UT2004ItemType |
ONS_TARGET_PAINTER
TargetPainter Onslaught weapon. |
protected static HashMap<String,ItemType> |
protos
Map of all registered ItemType prototypes. |
static UT2004ItemType |
REDEEMER
Redeemer weapon. |
static UT2004ItemType |
REDEEMER_AMMO
Redeemer ammo. |
static UT2004ItemType |
REDEEMER_PROJECTILE
Redeemer weapon. |
static UT2004ItemType |
ROCKET_LAUNCHER
RocketLauncher weapon. |
static UT2004ItemType |
ROCKET_LAUNCHER_AMMO
RocketLauncher ammo. |
static UT2004ItemType |
ROCKET_LAUNCHER_PROJECTILE
RocketLauncher projectile. |
static UT2004ItemType |
SHIELD_GUN
ShieldGun weapon. |
static UT2004ItemType |
SHIELD_GUN_AMMO
ShieldGun ammo - sent when the bot is spawned. |
static UT2004ItemType |
SHIELD_PACK
SmallShield. |
static UT2004ItemType |
SHOCK_RIFLE
ShockRifle weapon. |
static UT2004ItemType |
SHOCK_RIFLE_AMMO
ShockRifle ammo. |
static UT2004ItemType |
SHOCK_RIFLE_PROJECTILE
ShockRifle projectile. |
static UT2004ItemType |
SNIPER_RIFLE
SniperRifle weapon (classic sniper weapon). |
static UT2004ItemType |
SNIPER_RIFLE_AMMO
SniperRifle ammo. |
static UT2004ItemType |
SUPER_HEALTH_PACK
SuperHealth charger. |
static UT2004ItemType |
SUPER_SHIELD_PACK
SuperShield. |
static UT2004ItemType |
SUPER_SHOCK_RIFLE
SuperShockRifle weapon (instagib weapon). |
static UT2004ItemType |
TRANSLOCATOR
Translocator. |
static UT2004ItemType |
TRANSLOCATOR_PROJECTILE
Translocator Beacon. |
static UT2004ItemType |
U_DAMAGE_PACK
UDamage bonus (damage multiplier). |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType |
---|
CATEGORIES |
Constructor Summary | |
---|---|
UT2004ItemType(String name)
Public constructor - creates ItemType of the EXTRA category and Group OTHER. |
Method Summary | |
---|---|
int |
compareTo(ItemType o)
|
boolean |
equals(Object obj)
Indicates whether some other ItemType is "equal to" this one. |
ItemType.Category |
getCategory()
Retrieves category of the item type. |
UT2004ItemType.UT2004Group |
getGroup()
Retrieves group of the item type. |
static ItemType |
getItemType(String utName)
Retrieves an ItemType for the specified item type name. |
String |
getName()
|
static ItemType |
getWeapon(UnrealId id)
Attempts to recognize the weapon you are currently holding... |
int |
hashCode()
Returns a hash code value for the object. |
static UT2004ItemType |
MakePrototype(ItemType.Category category,
UT2004ItemType.UT2004Group group,
String[] utNames)
Proto-constructor. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static HashMap<String,ItemType> protos
public static final cz.cuni.amis.utils.maps.HashMapSet<UT2004ItemType.UT2004Group,ItemType> GROUPS
public static final UT2004ItemType TRANSLOCATOR
public static final UT2004ItemType TRANSLOCATOR_PROJECTILE
public static final UT2004ItemType SHIELD_GUN
public static final UT2004ItemType SHIELD_GUN_AMMO
public static final UT2004ItemType ASSAULT_RIFLE
public static final UT2004ItemType ASSAULT_RIFLE_AMMO
public static final UT2004ItemType ASSAULT_RIFLE_GRENADE
public static final UT2004ItemType ASSAULT_RIFLE_PROJECTILE
public static final UT2004ItemType BIO_RIFLE
public static final UT2004ItemType BIO_RIFLE_AMMO
public static final UT2004ItemType BIO_RIFLE_PROJECTILE
public static final UT2004ItemType SHOCK_RIFLE
public static final UT2004ItemType SHOCK_RIFLE_AMMO
public static final UT2004ItemType SHOCK_RIFLE_PROJECTILE
public static final UT2004ItemType LINK_GUN
public static final UT2004ItemType LINK_GUN_AMMO
public static final UT2004ItemType LINK_GUN_PROJECTILE
public static final UT2004ItemType MINIGUN
public static final UT2004ItemType MINIGUN_AMMO
public static final UT2004ItemType FLAK_CANNON
public static final UT2004ItemType FLAK_CANNON_AMMO
public static final UT2004ItemType FLAK_CANNON_CHUNK
public static final UT2004ItemType FLAK_CANNON_SHELL
public static final UT2004ItemType ROCKET_LAUNCHER
public static final UT2004ItemType ROCKET_LAUNCHER_AMMO
public static final UT2004ItemType ROCKET_LAUNCHER_PROJECTILE
public static final UT2004ItemType LIGHTNING_GUN
public static final UT2004ItemType LIGHTNING_GUN_AMMO
public static final UT2004ItemType SNIPER_RIFLE
public static final UT2004ItemType SNIPER_RIFLE_AMMO
public static final UT2004ItemType REDEEMER
public static final UT2004ItemType REDEEMER_AMMO
public static final UT2004ItemType REDEEMER_PROJECTILE
public static final UT2004ItemType SUPER_SHOCK_RIFLE
public static final UT2004ItemType ION_PAINTER
public static final UT2004ItemType ION_PAINTER_AMMO
public static final UT2004ItemType ONS_MINE_LAYER
public static final UT2004ItemType ONS_MINE_LAYER_AMMO
public static final UT2004ItemType ONS_MINE_LAYER_PROJECTILE
public static final UT2004ItemType ONS_GRENADE_LAUNCHER
public static final UT2004ItemType ONS_GRENADE_LAUNCHER_AMMO
public static final UT2004ItemType ONS_GRENADE_LAUNCHER_PROJECTILE
public static final UT2004ItemType ONS_AVRIL
public static final UT2004ItemType ONS_AVRIL_AMMO
public static final UT2004ItemType ONS_AVRIL_PROJECTILE
public static final UT2004ItemType ONS_TARGET_PAINTER
public static final UT2004ItemType HEALTH_PACK
public static final UT2004ItemType MINI_HEALTH_PACK
public static final UT2004ItemType SUPER_HEALTH_PACK
public static final UT2004ItemType SHIELD_PACK
public static final UT2004ItemType SUPER_SHIELD_PACK
public static final UT2004ItemType U_DAMAGE_PACK
public static final UT2004ItemType ADRENALINE_PACK
public static final UT2004ItemType KEY
public static final UT2004ItemType NONE
protected String name
Note: Items of the same type might have different names in UT engine. Use
equals(Object)
to safely compare two ItemTypes. This name is
informative only.
Constructor Detail |
---|
public UT2004ItemType(String name)
name
- Type name from GB engine.Method Detail |
---|
public String toString()
toString
in class ItemType
public ItemType.Category getCategory()
ItemType
getCategory
in class ItemType
public UT2004ItemType.UT2004Group getGroup()
ItemType
getGroup
in class ItemType
public boolean equals(Object obj)
ItemType
equals
in class ItemType
obj
- Object to be compared with.
public int hashCode()
ItemType
hashCode
in class ItemType
public int compareTo(ItemType o)
public static ItemType getWeapon(UnrealId id)
See Self.getWeapon()
.
May return null == weapon was not recognized. ALWAYS CHECK!
public static UT2004ItemType MakePrototype(ItemType.Category category, UT2004ItemType.UT2004Group group, String[] utNames)
category
- Category of the item.group
- Group of the item.utNames
- Names of the item in UT engine.
public static ItemType getItemType(String utName)
utName
- e.g. Item.getType()
public String getName()
getName
in class ItemType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |