Source of HarryPotterMazeGameCreator.java


  1: 
  2: package maze.harry; 
  3: 
  4: import maze.*; 
  5: 
  6: public class HarryPotterMazeGameCreator extends MazeGameCreator { 
  7: 
  8:   public Wall makeWall() { 
  9:     return new HarryPotterWall(); 
 10:   }
 11: 
 12:   public Room makeRoom(int roomNumber) { 
 13:     return new HarryPotterRoom(roomNumber); 
 14:   }
 15: 
 16:   public Door makeDoor(Room room1, Room room2) { 
 17:     return new HarryPotterDoor(room1, room2); 
 18:   }
 19: 
 20: }