public void SetBlock(EnumPlayerBodyPart bodyPart) { if (Blocked == bodyPart) { Block(this, new PlayerModelEventArgs(Name, Health)); } else { if (Health > 0) { Health -= 10; Wound(this, new PlayerModelEventArgs(Name, Health)); if (Health <= 0) { Death(this, new PlayerModelEventArgs(Name, Health)); } } } }
public void GetHit(EnumPlayerBodyPart bodyPart) { Hited = bodyPart; }