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()); }
public void SetSelectedSoldier(FireTeamSoldier SelectedSoldier) { if (SquadSoldiers.Contains (SelectedSoldier)) { SquadSelectionIndex = SquadSoldiers.LastIndexOf(SelectedSoldier); } }
public void AddFireTeamSoldier(FireTeamSoldier NewSoldier) { SquadSoldiers.Add (NewSoldier); }