Beispiel #1
0
 public MazePrototypeFactory(MazeP maze, RoomP room, DoorP door, WallP wall)
 {
     this.prototypeRoom = room;
     this.prototypeDoor = door;
     this.prototypeWall = wall;
     this.prototypeMaze = maze;
 }
Beispiel #2
0
 public RoomP(RoomP room)
 {
     this.roomNumber = room.roomNumber;
 }
Beispiel #3
0
 public RoomP OtherSideFrom(RoomP room)
 {
     return ((room == this.room1) ? this.room2 : this.room1);
 }
Beispiel #4
0
 public virtual void Initialize(RoomP room1, RoomP room2)
 {
     this.room1 = room1;
     this.room2 = room2;
 }
Beispiel #5
0
 public DoorP(DoorP door)
 {
     this.room1 = door.room1;
     this.room2 = door.room2;
 }