Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }