Пример #1
0
 private void ForceCreatures()
 {
     for (int i = 0; i < slipList.Size(); i++)
     {
         BlockMove bm = slipList.Get(i);
         if (bm.Block.Creature || bm.Block.IsBlock())
         {
             ForceMove(bm.Block, bm.Move);
         }
     }
 }
Пример #2
0
 public virtual void AddToSlipList(Block b, Moves m)
 {
     if (b.Chip)
     {
         chipForced = new BlockMove(b, m);
     }
     else
     {
         slipList.Put(b, m);
     }
 }
Пример #3
0
        public virtual bool ForceChip()
        {
            if (chipForced != null)
            {
                BlockMove cm = chipForced.Clone();
                chipForced = null;
                ForceMove(cm.Block, cm.Move);
                level.Chip.Forced = true;
                return(true);
            }

            return(false);
        }
Пример #4
0
        public virtual void ClearStuff()
        {
            tickCount  = 0;
            chipForced = null;
            chip       = null;
            dead       = false;
            Buttons.Clear();
            Creatures.Clear();
            Teleports.Clear();
            slipList.Clear();
            inventory.Clear();
            movingBlocks.Clear();

            IsChipOnHintField = false;
            secondsTimer.Change(Timeout.Infinite, Timeout.Infinite);
        }