Esempio n. 1
0
 public static JobAction[] GetActionsForTask(JobTasks task, TribeJob job)
 {
     JobAction[] actions = null;
     if (task == JobTasks.Build)
     {
         actions    = new JobAction[1];
         actions[0] = new JobAction(JobActions.DetermineResources, job);
     }
     if (actions == null)
     {
         Debug.LogWarning("Action list empty for task - " + task);
     }
     return(actions);
 }
Esempio n. 2
0
 private void initialize(JobActions action, Transform target, TribeJob job)
 {
     this._targetTransform = target;
     this._targetPosition  = target.position;
     initialize(action, job);
 }
Esempio n. 3
0
 private void initialize(JobActions action, TribeJob job)
 {
     this._parentJob   = job;
     this.jobAction    = action;
     resourcesRequired = new Dictionary <Thing.Thing_Types, int>();
 }
Esempio n. 4
0
 private void initialize(JobActions action, Vector3 targetPosition, TribeJob job)
 {
     this._targetPosition  = targetPosition;
     this._targetTransform = null;
     initialize(action, job);
 }
Esempio n. 5
0
 public JobAction(JobActions action, TribeJob job)
 {
     initialize(action, job);
 }
Esempio n. 6
0
 public JobAction(JobActions action, Transform target, TribeJob job)
 {
     initialize(action, target, job);
 }
Esempio n. 7
0
 public JobAction(JobActions action, Vector3 targetPosition, TribeJob job)
 {
     initialize(action, targetPosition, job);
 }
Esempio n. 8
0
 public TribeJobPosting(float urgency, Tasks.CreatureTasks task, TribeJob parentJob)
 {
     this.urgency       = urgency;
     this.requestedTask = task;
     this.associatedJob = parentJob;
 }