Exemplo n.º 1
0
        public TaskUnitSelection(IUnit i_unit, MissionTaskData i_taskData, IMissionProposal i_proposal)
        {
            mMissionProposal  = i_proposal;
            mUnit             = i_unit;
            mTaskIndex        = i_taskData.Index;
            mStat             = i_taskData.StatRequirement;
            mPowerRequirement = i_taskData.PowerRequirement;
            mModel            = new ViewModel();

            SetUpModel();

            mTaskProposal = new MissionTaskProposal(mTaskIndex, mUnit.GetID(), NumUnitsRequired);
        }
Exemplo n.º 2
0
 private void SetTaskProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     mTaskProposals[i_taskIndex] = i_taskProposal;
 }
Exemplo n.º 3
0
 public void RemoveProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     SetTaskProposal(i_taskIndex, null);
     ChangePromisedUnits(i_taskProposal.UnitID, -i_taskProposal.UnitCount);
 }
Exemplo n.º 4
0
 public void AddProposal(int i_taskIndex, MissionTaskProposal i_taskProposal)
 {
     SetTaskProposal(i_taskIndex, i_taskProposal);
     ChangePromisedUnits(i_taskProposal.UnitID, i_taskProposal.UnitCount);
 }