public static Board getBoardFromBattleGameData(BattleGameData battleGameData, BattleGame battleGame) { Board b = new Board(battleGame, battleGameData.tileMapData.battleTileArray.GetLength(0)); b.board = copyTileArray(battleGameData.tileMapData.battleTileArray); return b; }
public static Board getBoardFromBattleGameData(BattleGameData battleGameData, BattleGame battleGame) { Board b = new Board(battleGame, battleGameData.tileMapData.battleTileArray.GetLength(0)); b.board = copyTileArray(battleGameData.tileMapData.battleTileArray); return(b); }
public BattleGame(BattleGameData gameData, Random r, BattleSceneControllerScript gameScript) { this.gameControllerScript = gameScript; this.gameData = gameData; this.r = r; battleLog = new BattleLog(); LoadBoardFromData(); LoadCharactersFromData(); StartBattle(); }
public static BattleGameData getBattleGameDataFromZoneTree(List<GameCharacter> playerCharacterList, BattleTree battleTree, GameDataSet gameDataSet, TileMapData tileMapData) { BattleGameData retval = new BattleGameData(); retval.tileMapData = tileMapData; //load player retval.gameCharacterList.AddRange(playerCharacterList); //load enemies foreach (var enemyNode in battleTree.getEnemyNodeList()) { if(gameDataSet.gameCharacterDataDictionary.ContainsKey(enemyNode.content.linkIndex)){ var enemyData = gameDataSet.gameCharacterDataDictionary[enemyNode.content.linkIndex]; retval.gameCharacterList.Add(CharacterFactory.getGameCharacterFromGameCharacterData(enemyData, gameDataSet)); } } return retval; }
public static BattleGameData getBattleGameDataFromZoneTree(List <GameCharacter> playerCharacterList, BattleTree battleTree, GameDataSet gameDataSet, TileMapData tileMapData) { BattleGameData retval = new BattleGameData(); retval.tileMapData = tileMapData; //load player retval.gameCharacterList.AddRange(playerCharacterList); //load enemies foreach (var enemyNode in battleTree.getEnemyNodeList()) { if (gameDataSet.gameCharacterDataDictionary.ContainsKey(enemyNode.content.linkIndex)) { var enemyData = gameDataSet.gameCharacterDataDictionary[enemyNode.content.linkIndex]; retval.gameCharacterList.Add(CharacterFactory.getGameCharacterFromGameCharacterData(enemyData, gameDataSet)); } } return(retval); }