Esempio n. 1
0
        private void ShowMap()
        {
            if (FogOfWar.fogOfWarOn)
            {
                ClearDisplayGrid();
                FogOfWar.UpdateFogOfWar(this);
            }

            displayGrid.Visible = true;
        }
Esempio n. 2
0
        public void ActivateDoor()
        {
            int newDoorRow    = displayGrid.CurrentCell.OwningRow.Index;
            int newDoorColumn = displayGrid.CurrentCell.OwningColumn.Index;

            int[] previousDoor = new int[2];
            previousDoor[0] = CurrentDoor[0];
            previousDoor[1] = CurrentDoor[1];

            if (CurrentFloor != 1 || MapGeneration.map1.Contents[newDoorRow, newDoorColumn] != 'D')
            {
                SetCurrentDoor(newDoorRow, newDoorColumn);
                if (displayGrid.Rows[previousDoor[0]].Cells[previousDoor[1]].Style.BackColor == Color.Red)
                {
                    SetCellBlue(previousDoor[0], previousDoor[1]);
                }
                FogOfWar.UpdateFogOfWar(this);
            }
        }