Exemple #1
0
    public SoldierBuilder(NewSoldierData Data)
    {
        BuildData = Data;

        BuildedSoldier = new FireTeamSoldier ();
        BuildedSoldier.SetName (Data.GetName());
        BuildedSoldier.SetAccuracy (Data.GetAccuracy());
        BuildedSoldier.SetArmor (Data.GetArmor());
        BuildedSoldier.SetHealth (Data.GetHealth());
        BuildedSoldier.SetMovePoints (Data.GetMovePoints());
        BuildedSoldier.SetMorale (Data.GetMorale());
    }
Exemple #2
0
 public void SetSelectedSoldier(FireTeamSoldier SelectedSoldier)
 {
     if (SquadSoldiers.Contains (SelectedSoldier)) {
         SquadSelectionIndex = SquadSoldiers.LastIndexOf(SelectedSoldier);
     }
 }
Exemple #3
0
 public void AddFireTeamSoldier(FireTeamSoldier NewSoldier)
 {
     SquadSoldiers.Add (NewSoldier);
 }