public BattleInfo MakeBattleInfo() { InitBattle(); var battleInfo = new BattleInfo(); battleInfo.Init( TurnTime, Turns, new PartyInfo[] { Player.partyInfo, Opponent.partyInfo }, BattleSceneType.Jungle); return(battleInfo); }
//Private Methods private BattleInfo MakeBattleInfo(WBattleData battleData) { BattleInfo bi = new BattleInfo(); PartyInfo[] partyInfoes = new PartyInfo[2]; for (int i = 0; i < partyInfoes.Length; i++) { partyInfoes[i] = MakePartyInfo(battleData.party[i]); } bi.Init(battleData.turnTime, battleData.turn, partyInfoes, battleData.scene_type, battleData.is_bot, battleData.bot_ai); return(bi); }
private static BattleInfo MakeBattleInfo(BattleController battleController) { BattleInfo battleInfo = new BattleInfo(); PartyInfo[] partyInfoes = new PartyInfo[2]; for (int i = 0; i < partyInfoes.Length; i++) { partyInfoes[i] = MakePartyInfo(battleController.parties[i]); } battleInfo.Init(battleController.turnTime, battleController.turnOrders.ToArray(), partyInfoes, battleController.sceneType); return(battleInfo); }