Example #1
0
    public BattleInfo MakeBattleInfo()
    {
        InitBattle();

        var battleInfo = new BattleInfo();

        battleInfo.Init(
            TurnTime, Turns,
            new PartyInfo[] { Player.partyInfo, Opponent.partyInfo },
            BattleSceneType.Jungle);

        return(battleInfo);
    }
Example #2
0
    //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);
    }
Example #3
0
    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);
    }