|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.WeaponUpdate
public class WeaponUpdate
Definition of the event WUP.
Complete message documentation: Asynchronous message. Send when the bot changed weapon. Here we will export the status of the old weapon - of the weapon that was changed. So we can have correct info about weapons in our inventory. This could be a problem without this message because of synchronous batch delay.
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the weapon, based on the inventory weapon's name (this is different from the Id of the weapon that can be picked up in the map). |
protected java.lang.String |
InventoryType
Class of the weapon in the inventory. |
protected int |
PrimaryAmmo
Holding primary ammo of the old weapon (that was changed). |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected int |
SecondaryAmmo
Holding secondary ammo of the old weapon (that was changed) |
protected long |
SimTime
|
Constructor Summary | |
---|---|
WeaponUpdate()
Parameter-less contructor for the message. |
|
WeaponUpdate(UnrealId Id,
int PrimaryAmmo,
int SecondaryAmmo,
java.lang.String InventoryType)
Creates new instance of the message WeaponUpdate. |
|
WeaponUpdate(WeaponUpdate original)
Cloning constructor from the full message. |
Method Summary | |
---|---|
UnrealId |
getId()
Unique Id of the weapon, based on the inventory weapon's name (this is different from the Id of the weapon that can be picked up in the map). |
java.lang.String |
getInventoryType()
Class of the weapon in the inventory. |
int |
getPrimaryAmmo()
Holding primary ammo of the old weapon (that was changed). |
int |
getSecondaryAmmo()
Holding secondary ammo of the old weapon (that was changed) |
long |
getSimTime()
Returns the simulation time when the event has occurred. |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected long SimTime
protected UnrealId Id
protected int PrimaryAmmo
protected int SecondaryAmmo
protected java.lang.String InventoryType
Constructor Detail |
---|
public WeaponUpdate()
public WeaponUpdate(UnrealId Id, int PrimaryAmmo, int SecondaryAmmo, java.lang.String InventoryType)
Id
- Unique Id of the weapon, based on the inventory weapon's
name (this is different from the Id of the weapon that can
be picked up in the map).PrimaryAmmo
- Holding primary ammo of the old weapon (that was changed).SecondaryAmmo
- Holding secondary ammo of the old weapon (that was changed)InventoryType
- Class of the weapon in the inventory. Matches InventoryType in the item class (ITC) message.public WeaponUpdate(WeaponUpdate original)
original
- Method Detail |
---|
public long getSimTime()
IWorldEvent
getSimTime
in interface IWorldChangeEvent
getSimTime
in interface IWorldEvent
protected void setSimTime(long SimTime)
public UnrealId getId()
public int getPrimaryAmmo()
public int getSecondaryAmmo()
public java.lang.String getInventoryType()
public java.lang.String toString()
toString
in class InfoMessage
public java.lang.String toHtmlString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |