Ejemplo n.º 1
0
        public virtual void setFloor(int which, int whichRoom = -1, bool persist = false)
        {
            List <Rectangle> rooms = getFloors();

            if (!persist)
            {
                return;
            }
            floor.SetCountAtLeast(rooms.Count);
            if (whichRoom == -1)
            {
                for (int i = 0; i < floor.Count; i++)
                {
                    floor[i] = which;
                }
            }
            else if (whichRoom <= floor.Count - 1)
            {
                floor[whichRoom] = which;
            }
        }
Ejemplo n.º 2
0
        public void setWallpaper(int which, int whichRoom = -1, bool persist = false)
        {
            List <Rectangle> rooms = getWalls();

            if (!persist)
            {
                return;
            }
            wallPaper.SetCountAtLeast(rooms.Count);
            if (whichRoom == -1)
            {
                for (int i = 0; i < wallPaper.Count; i++)
                {
                    wallPaper[i] = which;
                }
            }
            else if (whichRoom <= wallPaper.Count - 1)
            {
                wallPaper[whichRoom] = which;
            }
        }