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.


Field Summary
static int WEAPON_BOMB
           
static int WEAPON_BULLET
           
static int WEAPON_BULLET_BOUNCING
           
static int WEAPON_BURST
           
static int WEAPON_DECOY
           
static int WEAPON_EMP_BOMB
           
static int WEAPON_MINE
           
static int WEAPON_MULTIFIRE
           
static int WEAPON_NOTMINE
           
static int WEAPON_REPEL
           
static int WEAPON_SINGLEFIRE
           
static int WEAPON_THOR
           
 
Constructor Summary
WatchDamage(twcore.core.ByteArray array)
           
 
Method Summary
 int getAttacker()
          Gets the PlayerID of the Attacker
 int getEnergyLost()
          Gets the energy the player lost.
 int getOldEnergy()
          Gets the energy the player had before.
 int getVictim()
          Gets the PlayerID of the Victim
 int getWeaponLevel()
           
 int getWeaponShrapCount()
           
 int getWeaponShrapLevel()
           
 int getWeaponType()
           
 boolean isMine()
           
 boolean isMultifire()
           
 boolean isType(int type)
           
 boolean isWeaponBouncyShrap()
           
 
Methods inherited from class twcore.core.SubspaceEvent
getEventType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WatchDamage

public WatchDamage(twcore.core.ByteArray array)
Method Detail

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()