// privates protected void addDamageLog(long time, ushort instid, CombatItem c, List <DamageLog> toFill) { if (instid == c.getDstInstid() && c.getIFF() == ParseEnum.IFF.Foe) { if (c.isBuffremove() == ParseEnum.BuffRemove.None) { if (c.isBuff() == 1 && c.getBuffDmg() != 0)//condi { toFill.Add(new DamageLogCondition(time, c)); } else if (c.isBuff() == 0 && c.getValue() != 0)//power { toFill.Add(new DamageLogPower(time, c)); } else if (c.getResult() == ParseEnum.Result.Absorb || c.getResult() == ParseEnum.Result.Blind || c.getResult() == ParseEnum.Result.Interrupt) {//Hits that where blinded, invulned, interupts toFill.Add(new DamageLogPower(time, c)); } } } }
// Constructor public DamageLog(long time, CombatItem c) { this.time = time; this.skill_id = c.getSkillID(); this.buff = c.isBuff(); this.result = c.getResult(); this.is_ninety = c.isNinety(); this.is_moving = c.isMoving(); this.is_flanking = c.isMoving(); this.is_activation = c.isActivation(); this.src_agent = c.getSrcAgent(); this.src_instid = c.getSrcInstid(); this.is_shields = c.isShields(); }