Exemple #1
0
 public DungeonMaster()
 {
     //this.gameData = GameFactory.GetInstance().TheData;
     this.gameData = new HardCodedData();
     this.gameClient = GameFactory.GetInstance().TheClient;
     playerTurnHandler = new CommandHandler();
 }
Exemple #2
0
 public void Init()
 {
     playerInput = new ParsedInput("quit", new ArrayList());
     thePlayer = new Player("greg");
     handler = new CommandHandler();
     quit = new QuitCommand();
 }
Exemple #3
0
 public void Init()
 {
     playerInput = new ParsedInput("look", new ArrayList());
     thePlayer = new Player("greg");
     t127 = new Location("a lecture theatre", "T127");
     Location gregsoffice = new Location("a spinning vortex of terror", "Greg's Office");
     southExit = new Exit("you see a mound of paper to the south", gregsoffice);
     t127.ExitCollection.AddExit("south", southExit );
     thePlayer.CurrentLocation = t127;
     handler = new CommandHandler();
     look = new LookCommand();
 }
Exemple #4
0
 public void Init()
 {
     playerInput = new ParsedInput("move", new ArrayList());
     thePlayer = new Player("greg");
     t127 = new Location("a lecture theatre", "T127");
     gregsoffice = new Location("a spinning vortex of terror", "Greg's Office");
     t127.ExitCollection.AddExit("south", new Exit("you see a mound of paper to the south", gregsoffice));
     gregsoffice.ExitCollection.AddExit("north", new Exit("you see a bleak place to the north", t127));
     thePlayer.CurrentLocation = t127;
     handler = new CommandHandler();
     move = new MoveCommand();
 }
Exemple #5
0
 public DungeonMaster(IMazeData gameData, IMazeClient gameClient)
 {
     this.gameData = gameData;
     this.gameClient = gameClient;
     playerTurnHandler = new CommandHandler();
 }