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