twcore.core
Class WatchDamage
java.lang.Object
|
+--twcore.core.SubspaceEvent
|
+--twcore.core.WatchDamage
- public class WatchDamage
- extends SubspaceEvent
This class represents watchdamage packets. Remember that you must
*watchdamage players that enter and also *watchdamage players upon exit.
Constructor Summary |
WatchDamage(twcore.core.ByteArray array)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEAPON_BULLET
public static int WEAPON_BULLET
WEAPON_BULLET_BOUNCING
public static int WEAPON_BULLET_BOUNCING
WEAPON_BOMB
public static int WEAPON_BOMB
WEAPON_EMP_BOMB
public static int WEAPON_EMP_BOMB
WEAPON_REPEL
public static int WEAPON_REPEL
WEAPON_DECOY
public static int WEAPON_DECOY
WEAPON_BURST
public static int WEAPON_BURST
WEAPON_THOR
public static int WEAPON_THOR
WEAPON_MULTIFIRE
public static int WEAPON_MULTIFIRE
WEAPON_SINGLEFIRE
public static int WEAPON_SINGLEFIRE
WEAPON_MINE
public static int WEAPON_MINE
WEAPON_NOTMINE
public static int WEAPON_NOTMINE
WatchDamage
public WatchDamage(twcore.core.ByteArray array)
getVictim
public int getVictim()
- Gets the PlayerID of the Victim
- Returns:
- Victim PlayerID
getAttacker
public int getAttacker()
- Gets the PlayerID of the Attacker
- Returns:
- Attacker PlayerID
getOldEnergy
public int getOldEnergy()
- Gets the energy the player had before.
- Returns:
- Old Energy Level
getEnergyLost
public int getEnergyLost()
- Gets the energy the player lost.
- Returns:
- Lost energy
getWeaponType
public int getWeaponType()
getWeaponLevel
public int getWeaponLevel()
isWeaponBouncyShrap
public boolean isWeaponBouncyShrap()
getWeaponShrapLevel
public int getWeaponShrapLevel()
getWeaponShrapCount
public int getWeaponShrapCount()
isType
public boolean isType(int type)
isMultifire
public boolean isMultifire()
isMine
public boolean isMine()