Exemple #1
0
 internal MazePrototypeFactory(Maze_Prototype maze, WallPrototype wall, RoomPrototype room, DoorPrototype door)
 {
     _prototypeMaze = maze;
     _prototypeWall = wall;
     _prototypeRoom = room;
     _prototypeDoor = door;
 }
Exemple #2
0
        internal override Door MakeDoor(Room r1, Room r2)
        {
            DoorPrototype door = (DoorPrototype)_prototypeDoor.Clone();

            door.Initialize(r1, r2);
            return(door);
        }
Exemple #3
0
        public object Clone()
        {
            DoorPrototype clone = new DoorPrototype();

            clone._isOpen = _isOpen;
            clone._room1  = _room1;
            clone._room2  = _room1;
            return(clone);
        }