public class DomeMember extends java.lang.Object implements MessageCallback
Modifier and Type | Class and Description |
---|---|
class |
DomeMember.DeathTeleport |
class |
DomeMember.DecrementTimeRemaining |
class |
DomeMember.Reactivate |
class |
DomeMember.RegenerateHealth |
class |
DomeMember.SetWeapon
Terrible hack
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
abilities |
protected boolean |
active |
protected int |
base_speed |
protected java.lang.Long |
cooldown |
protected int |
damageDealt |
protected int |
damageTaken |
protected int |
deaths |
protected int |
domeID |
protected int |
hearts |
protected OID |
instanceOid |
protected int |
kills |
protected java.util.concurrent.locks.Lock |
lock |
protected ArenaWeapon |
mainHandWeapon |
protected int |
maxHearts |
protected java.lang.String |
name |
static int |
numAbilities |
protected ArenaWeapon |
offHandWeapon |
protected OID |
oid |
protected int |
permitID |
static int |
primaryWeaponAbilitySlot |
protected java.util.HashMap<java.lang.String,java.io.Serializable> |
properties |
protected boolean |
regenerating |
protected Point |
respawnLocation |
protected java.util.concurrent.ScheduledFuture<?> |
schedule |
protected int |
score |
static int |
secondaryWeaponAbilitySlot |
protected ArenaStats |
stats |
protected java.lang.Long |
sub |
protected int |
team |
protected int |
timeRemaining |
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
DomeMember(OID oid,
java.lang.String name,
int team,
int domeID,
int permitID,
int permitCount,
Point respawnLocation) |
Modifier and Type | Method and Description |
---|---|
void |
activateAbility(int slot,
OID targetOid) |
void |
addDamageDealt(int damageDealt) |
void |
addDamageTaken(int damageTaken) |
void |
addDeath() |
void |
addKill() |
boolean |
alterHearts(int change,
OID caster) |
void |
clearAbilities() |
void |
deactivate(boolean stillOnline) |
int[] |
getAbilities() |
boolean |
getActive() |
int |
getDamageDealt() |
int |
getDamageTaken() |
int |
getDeaths() |
int |
getKills() |
java.lang.String |
getName() |
OID |
getOid() |
java.util.HashMap<java.lang.String,java.io.Serializable> |
getProperties() |
java.io.Serializable |
getProperty(java.lang.String propName) |
int |
getScore() |
ArenaStats |
getStats() |
java.lang.Long |
getSub() |
int |
getTeam() |
void |
handleMessage(Message msg,
int flags)
Handle message.
|
void |
initialize() |
void |
playDeathAnimation() |
void |
playerDied() |
void |
playVictoryAnimation() |
void |
queueReactivation(int seconds) |
boolean |
sendMessage(java.lang.String msgType,
java.io.Serializable data)
Sends an extension message of the specified type to the specified player
|
void |
setAbility(int slot,
int abilityID) |
void |
setActive(boolean active) |
void |
setPlayerProperty(java.lang.String prop,
java.io.Serializable value) |
void |
setProperty(java.lang.String propName,
java.io.Serializable value) |
void |
setSub(java.lang.Long sub) |
protected void |
setWeapons()
Gets the players weapon properties and updates their abilities based on the weapons equipped
|
void |
updateScore(int delta) |
protected void |
weaponUsed(int abilityID) |
protected OID oid
protected java.lang.String name
protected OID instanceOid
protected int domeID
protected int timeRemaining
protected int permitID
protected ArenaWeapon mainHandWeapon
protected ArenaWeapon offHandWeapon
protected int hearts
protected int maxHearts
protected boolean regenerating
protected Point respawnLocation
protected int team
protected int score
protected int kills
protected int deaths
protected int damageDealt
protected int damageTaken
protected ArenaStats stats
protected java.util.HashMap<java.lang.String,java.io.Serializable> properties
protected int[] abilities
protected java.lang.Long cooldown
protected java.lang.Long sub
protected boolean active
protected int base_speed
protected java.util.concurrent.ScheduledFuture<?> schedule
protected transient java.util.concurrent.locks.Lock lock
public static final int numAbilities
public static final int primaryWeaponAbilitySlot
public static final int secondaryWeaponAbilitySlot
public void initialize()
public void deactivate(boolean stillOnline)
public void handleMessage(Message msg, int flags)
MessageCallback
handleMessage
in interface MessageCallback
msg
- Message sent from other agent.flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.protected void setWeapons()
public void activateAbility(int slot, OID targetOid)
protected void weaponUsed(int abilityID)
public boolean alterHearts(int change, OID caster)
change
- caster
- public void setProperty(java.lang.String propName, java.io.Serializable value)
public java.io.Serializable getProperty(java.lang.String propName)
public void updateScore(int delta)
public void addKill()
public void addDeath()
public void addDamageDealt(int damageDealt)
public void addDamageTaken(int damageTaken)
public void setAbility(int slot, int abilityID)
public void clearAbilities()
public void playerDied()
public void playDeathAnimation()
public void playVictoryAnimation()
public void queueReactivation(int seconds)
public void setPlayerProperty(java.lang.String prop, java.io.Serializable value)
public boolean sendMessage(java.lang.String msgType, java.io.Serializable data)
msgType:
- the message typeoid:
- the oid to send the message todata:
- some form of data to be sentpublic OID getOid()
public java.lang.String getName()
public int getTeam()
public int getScore()
public int getKills()
public int getDeaths()
public int getDamageDealt()
public int getDamageTaken()
public ArenaStats getStats()
public java.util.HashMap<java.lang.String,java.io.Serializable> getProperties()
public int[] getAbilities()
public void setSub(java.lang.Long sub)
public java.lang.Long getSub()
public void setActive(boolean active)
public boolean getActive()