コード例 #1
0
ファイル: Fight.cs プロジェクト: jmdjr/ls-story-books
        public Fight(FighterTeam alpha, FighterTeam beta)
        {
            Alpha = new FighterTeamFightStatus(alpha);
            Beta = new FighterTeamFightStatus(beta);

            FightOrder = new List<FighterFightStatus>();

            FightOrder.AddRange(Alpha.SetupFightStatus());
            FightOrder.AddRange(Beta.SetupFightStatus());
        }
コード例 #2
0
ファイル: Manager.cs プロジェクト: jmdjr/ls-story-books
        public FighterTeam SelectTeam(FighterTeam selectTeam = null)
        {
            if(selectTeam == null)
            {
                this.ActiveTeam = Teams.FirstOrDefault();
            }
            else if(Teams.Contains(selectTeam))
            {
                this.ActiveTeam = selectTeam;
            }

            return this.ActiveTeam;
        }
コード例 #3
0
    void InitializeFight()
    {
        if (managerReference.ActiveTeam == null)
        {
            yourTeam = managerReference.SelectTeam();
        }
        else
        {
            yourTeam = managerReference.ActiveTeam;
        }

        FighterTeam AlphaTeam = yourTeam;
        yourTeam.Info.TeamName = "Alpha Team";

        FighterTeamInfo betaInfo = new FighterTeamInfo(true);
        FighterTeam BetaTeam = new FighterTeam(betaInfo);
        betaInfo.TeamName = "Beta Team";

        Fight = new Fight(AlphaTeam, BetaTeam);

        StartCoroutine(Fight.Run());
    }
コード例 #4
0
 public FighterTeamFightStatus(FighterTeam team)
 {
     this.TeamOrganization = team;
     this.TeamInfo = team.Info;
 }