public BabaYaga(int posX, int posY) { idMutex.WaitOne(); id++; Id = id; idMutex.ReleaseMutex(); PosX = posX; PosY = posY; Hp = 20; Gear = new AbsEquipment[1]; Equip(new Wand()); EntityState = State.Alive; }
public Troll(int posX, int posY) { idMutex.WaitOne(); id++; Id = id; idMutex.ReleaseMutex(); PosX = posX; PosY = posY; Hp = 15; Gear = new AbsEquipment[1]; Equip(new Axe()); Equip(new WoodenShield()); EntityState = State.Alive; }