Exemple #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);
 }
Exemple #2
0
 private void initialize(JobActions action, Transform target, TribeJob job)
 {
     this._targetTransform = target;
     this._targetPosition  = target.position;
     initialize(action, job);
 }
Exemple #3
0
 private void initialize(JobActions action, TribeJob job)
 {
     this._parentJob   = job;
     this.jobAction    = action;
     resourcesRequired = new Dictionary <Thing.Thing_Types, int>();
 }
Exemple #4
0
 private void initialize(JobActions action, Vector3 targetPosition, TribeJob job)
 {
     this._targetPosition  = targetPosition;
     this._targetTransform = null;
     initialize(action, job);
 }
Exemple #5
0
 public JobAction(JobActions action, TribeJob job)
 {
     initialize(action, job);
 }
Exemple #6
0
 public JobAction(JobActions action, Transform target, TribeJob job)
 {
     initialize(action, target, job);
 }
Exemple #7
0
 public JobAction(JobActions action, Vector3 targetPosition, TribeJob job)
 {
     initialize(action, targetPosition, job);
 }
Exemple #8
0
 public TribeJobPosting(float urgency, Tasks.CreatureTasks task, TribeJob parentJob)
 {
     this.urgency       = urgency;
     this.requestedTask = task;
     this.associatedJob = parentJob;
 }