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