Ejemplo n.º 1
0
 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));
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void GetHit(EnumPlayerBodyPart bodyPart)
 {
     Hited = bodyPart;
 }