示例#1
0
 public Enemy LoadEnemy(Enemy enemy, Dictionary<String, String> props)
 {
     enemy.MaxHealth = enemy.CurrentHealth = Convert.ToInt32(props["max-health"]);
     enemy.ContactDamage = Convert.ToInt32(props["contact-damage"]);
     enemy.Move(0, -enemy.Height);
     return enemy;
 }