Esempio n. 1
0
        public MissionInteriorCondition GetTopCondition( )
        {
            int topConditionIndex = 0;
            MissionInteriorCondition topCondition = null;

            if (MissionCondition.CheckConditions <MissionInteriorCondition> (State.Conditions, out topConditionIndex))
            {
                topCondition = State.Conditions [topConditionIndex];
                //Debug.Log("Choosing condition " + topConditionIndex.ToString () + " in " + name + " - " + topCondition.MissionName + " is " + topCondition.Status.ToString ( ) + ", " + topCondition.ObjectiveName + " is " + topCondition.ObjectiveStatus.ToString ( ));
            }
            else
            {
                //Debug.Log("Choosing default in " + name);
                topCondition = State.Default;
            }
            return(topCondition);
        }
Esempio n. 2
0
 protected Mission(string missionobj, string missondesc, float fcond, float tcond)
 {
     Missiondescription = missondesc;
     MissionObjective   = missionobj;
     _mcond             = new MissionCondition(fcond, tcond);
 }