public class CombatService extends java.lang.Object implements INetworkDispatch
Modifier and Type | Class and Description |
---|---|
static class |
CombatService.ElementalType |
static class |
CombatService.HitType |
Constructor and Description |
---|
CombatService(NGECore core) |
Modifier and Type | Method and Description |
---|---|
void |
applyDamage(CreatureObject attacker,
CreatureObject target,
int damage) |
boolean |
areInDuel(CreatureObject creature1,
CreatureObject creature2) |
boolean |
attemptHeal(CreatureObject healer,
CreatureObject target) |
void |
deathblowPlayer(CreatureObject attacker,
CreatureObject target) |
void |
doCombat(CreatureObject attacker,
TangibleObject target,
WeaponObject weapon,
CombatCommand command,
int actionCounter) |
void |
doHeal(CreatureObject healer,
CreatureObject target,
WeaponObject weapon,
CombatCommand command,
int actionCounter) |
byte |
doMitigationRolls(CreatureObject attacker,
CreatureObject target,
WeaponObject weapon,
CombatCommand command,
byte hitType) |
byte |
getHitType(CreatureObject attacker,
CreatureObject target,
WeaponObject weapon,
CombatCommand command) |
void |
handleDuel(CreatureObject requester,
CreatureObject target) |
void |
handleEndDuel(CreatureObject requester,
CreatureObject target) |
void |
insertOpcodes(java.util.Map<java.lang.Integer,INetworkRemoteEvent> arg0,
java.util.Map<java.lang.Integer,INetworkRemoteEvent> arg1) |
void |
shutdown() |
public CombatService(NGECore core)
public void insertOpcodes(java.util.Map<java.lang.Integer,INetworkRemoteEvent> arg0, java.util.Map<java.lang.Integer,INetworkRemoteEvent> arg1)
insertOpcodes
in interface INetworkDispatch
public void shutdown()
shutdown
in interface INetworkDispatch
public void doCombat(CreatureObject attacker, TangibleObject target, WeaponObject weapon, CombatCommand command, int actionCounter)
public byte getHitType(CreatureObject attacker, CreatureObject target, WeaponObject weapon, CombatCommand command)
public byte doMitigationRolls(CreatureObject attacker, CreatureObject target, WeaponObject weapon, CombatCommand command, byte hitType)
public void applyDamage(CreatureObject attacker, CreatureObject target, int damage)
public boolean attemptHeal(CreatureObject healer, CreatureObject target)
public void doHeal(CreatureObject healer, CreatureObject target, WeaponObject weapon, CombatCommand command, int actionCounter)
public void deathblowPlayer(CreatureObject attacker, CreatureObject target)
public boolean areInDuel(CreatureObject creature1, CreatureObject creature2)
public void handleDuel(CreatureObject requester, CreatureObject target)
public void handleEndDuel(CreatureObject requester, CreatureObject target)