示例#1
0
 public TribeJob(JobTasks task, Thing.Thing_Types type, Tribe tribe)
 {
     this.tribe      = tribe;
     this.task       = task;
     this.targetType = type;
     actions         = JobAction.GetActionsForTask(task, this);
     currentAction   = 0;
 }
示例#2
0
        public int GetAmountOfThingOwned(Thing.Thing_Types type)
        {
            Thing[] owned       = GetThingsOwnedByTribe();
            int     numberOwned = 0;

            foreach (Thing thing in owned)
            {
                if (thing.thingType == type)
                {
                    numberOwned++;
                }
            }
            return(numberOwned);
        }