Beispiel #1
0
 // What to assign to this class when it's created as a new instance.
 public ObjectiveInfo()
 {
     progress  = 0;
     location  = new Vector3();
     direction = new Vector3();
     type      = Objective.ObjectiveTypes.None;
     completed = false;
 }
Beispiel #2
0
        /****************************************************************
         * Create an objective. (Vector3, Objective.ObjectiveTypes.Type)
         * *************************************************************/
        public Objective CreateNewObjective(Vector3 location, Objective.ObjectiveTypes type)
        {
            Objective objective = new Objective();

            objective.setupObjective(location, type);
            objectives.Add(objective);
            return(objective);
        }
Beispiel #3
0
 public ObjectiveInfo(Objective obj)
 {
     objective   = obj;
     progress    = 0;
     location    = new Vector3();
     direction   = new Vector3();
     type        = Objective.ObjectiveTypes.None;
     completed   = false;
     uniqueID    = -1;
     objectiveID = new Random().Next(1, 999999);
 }