Exemplo n.º 1
0
 public void GetDamage(int damage)
 {
     HealthPoint -= damage;
     InAttack     = true;
     Standing     = true;
     StandingTime = TimeSpan.FromSeconds(2);
     if (HealthPoint <= 0)
     {
         CurrentWorld.RemoveDynamicEntity(this);
     }
 }
Exemplo n.º 2
0
 public virtual void Pick()
 {
     CurrentWorld?.RemoveDynamicEntity(this);
 }
Exemplo n.º 3
0
 public void Eat()
 {
     CurrentWorld.RemoveDynamicEntity(this);
 }