private int stageNumFile; //ステージのファイル番号 /// <summary> /// シーンの間にゲーム情報を伝える仲介者 /// </summary> /// <param name="gameDevice">ゲームディバイス</param> public GameManager(GameDevice gameDevice) { this.gameDevice = gameDevice; mapInstance = null; stageManager = new StageManager(gameDevice); enemySettingManager = new EnemySettingManager(gameDevice); blockStyle = new BlockStyle(); questManager = new QuestLoader(); questManager.Initialize(); questManager.Load(dungeonProcess, true); itemManager = new ItemManager(); dungeonProcess = new DungeonProcess(); enemyName = new EnemyNameLoader(); #region Player初期化 PlayerStatusLoader psLoader = new PlayerStatusLoader(); int[] status = psLoader.LoadStatus(); Status defaultStatus = new Status(1, status[0], status[1], status[2], status[3], 1); playerStatus = new PlayerStatus(defaultStatus, gameDevice); playerStatus.Initialize(); playerItem = playerStatus.GetInventory(); //道具欄を取得 playerQuest = new PlayerQuest(); playerGuildRank = new PlayerGuildRank(); #endregion Load(); }
public void Initialize(SceneType scene) { endFlag = false; questManager = gameManager.QuestManager; questManager.Initialize(); }