Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 2
0
 public virtual void AddToSlipList(Block b, Moves m)
 {
     if (b.Chip)
     {
         chipForced = new BlockMove(b, m);
     }
     else
     {
         slipList.Put(b, m);
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }