Ejemplo n.º 1
0
 internal MazePrototypeFactory(Maze_Prototype maze, WallPrototype wall, RoomPrototype room, DoorPrototype door)
 {
     _prototypeMaze = maze;
     _prototypeWall = wall;
     _prototypeRoom = room;
     _prototypeDoor = door;
 }
Ejemplo n.º 2
0
        internal override Room MakeRoom(int n)
        {
            RoomPrototype room = (RoomPrototype)_prototypeRoom.Clone();

            room.Initialize(n);
            return(room);
        }
Ejemplo n.º 3
0
        public virtual object Clone()
        {
            RoomPrototype clone = new RoomPrototype();

            clone.RoomNumber = RoomNumber;
            clone._sides     = _sides;
            return(clone);
        }