public virtual void AddBlock(int x, int y, Block b, int layer) { BlockContainer bc = GetBlockContainer(x, y); if (bc != null) { if (b.Chip) { chip = b; } if (b.IsA(Block.Type.TELEPORT)) { Teleports.AddTeleport(x, y); } switch (layer) { case 0: bc.Lower = b; break; case 1: bc.Upper = b; break; default: bc.Add(b); break; } blocks[b] = new Point(x, y); } }
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); }