コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }