Beispiel #1
0
 public Chest(bool lootable, string name, bool removable, Position position, AttackItem attackItem, DefenseItem defenseItem)
 {
     Id          = ChestIdCounter++;
     Lootable    = lootable;
     Name        = name;
     Removable   = removable;
     Position    = position;
     Symbol      = "C";
     AttackItem  = attackItem;
     DefenseItem = defenseItem;
 }
Beispiel #2
0
 public Goblin(string name, int health, Position position, AttackItem attackItem, DefenseItem defenseItem)
 {
     Id                   = IdCounter++;
     Name                 = name;
     MaxHealth            = health;
     CurrentHealth        = MaxHealth;
     Position             = position;
     Symbol               = "G";
     AttackItem           = attackItem;
     DefenseItem          = defenseItem;
     MyState.CurrentState = CreatureStates.State.Healthy;
 }