コード例 #1
0
ファイル: DungeonMaster.cs プロジェクト: Kais120/7201a2
 public DungeonMaster()
 {
     //this.gameData = GameFactory.GetInstance().TheData;
     this.gameData = new HardCodedData();
     this.gameClient = GameFactory.GetInstance().TheClient;
     playerTurnHandler = new CommandHandler();
 }
コード例 #2
0
ファイル: QuitCommandTest.cs プロジェクト: Kais120/7201a2
 public void Init()
 {
     playerInput = new ParsedInput("quit", new ArrayList());
     thePlayer = new Player("greg");
     handler = new CommandHandler();
     quit = new QuitCommand();
 }
コード例 #3
0
ファイル: LookCommandTest.cs プロジェクト: Kais120/7201a2
 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();
 }
コード例 #4
0
ファイル: MoveCommandTest.cs プロジェクト: Kais120/7201a2
 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();
 }
コード例 #5
0
ファイル: DungeonMaster.cs プロジェクト: Kais120/7201a2
 public DungeonMaster(IMazeData gameData, IMazeClient gameClient)
 {
     this.gameData = gameData;
     this.gameClient = gameClient;
     playerTurnHandler = new CommandHandler();
 }