public void SetProperty(FightProperty property, int value) { switch (property) { case FightProperty.MaxHp: maxHp = value; break; case FightProperty.Hp: hp = value; break; case FightProperty.MinAttack: minAttack = value; break; case FightProperty.MaxAttack: maxAttack = value; break; case FightProperty.Defense: defense = value; break; case FightProperty.Hit: hit = value; break; case FightProperty.MoveSpeed: moveSpeed = value; break; case FightProperty.AttackSpeed: attackSpeed = value; break; case FightProperty.Crit: crit = value; break; case FightProperty.Haste: haste = value; break; case FightProperty.Proficiency: proficiency = value; break; default: break; } }
public int GetProperty(FightProperty property) { switch (property) { case FightProperty.MaxHp: return(maxHp); case FightProperty.Hp: return(hp); case FightProperty.MinAttack: return(minAttack); case FightProperty.MaxAttack: return(maxAttack); case FightProperty.Defense: return(defense); case FightProperty.Hit: return(hit); case FightProperty.MoveSpeed: return(moveSpeed); case FightProperty.AttackSpeed: return(attackSpeed); case FightProperty.Crit: return(crit); case FightProperty.Haste: return(haste); case FightProperty.Proficiency: return(proficiency); default: return(0); } }
public int GetFightProperty(FightProperty property) { return(propertyController.GetProperty(property)); }