Ejemplo n.º 1
0
 public HarvestFarmBlock(BlockLoc nToDestory, Farm nFarm, IslandWorkingProfile nWorkingProfile)
 {
     toFarm         = nToDestory;
     farm           = nFarm;
     workingProfile = nWorkingProfile;
     taskType       = Type.HarvestFarmBlock;
 }
Ejemplo n.º 2
0
 public FarmingKickoffJob(Farm nFarm, Character nCharacter, IslandWorkingProfile nWorkingProfile)
 {
     farm      = nFarm;
     character = nCharacter;
     setJobType(JobType.agriculture);
     workingProfile = nWorkingProfile;
 }
Ejemplo n.º 3
0
        public DestroyBlockJob(Character nCharacter, IslandWorkingProfile nWorkingProfile, BlockLoc blockToDestroy)
        {
            targetBlock = blockToDestroy;

            character = nCharacter;
            setJobType(JobType.mining);
            workingProfile = nWorkingProfile;
        }
Ejemplo n.º 4
0
        public ChopTreeJob(Character nCharacter, IslandWorkingProfile nWorkingProfile, BlockLoc blockToChop)
        {
            targetBlock = blockToChop;

            character = nCharacter;
            setJobType(JobType.logging);
            workingProfile = nWorkingProfile;
        }
Ejemplo n.º 5
0
 public CarryResourceToStockpileKickoffJob(ResourceBlock.ResourceType nCarriedType,
                                           Character nCharacter, Job njobToReturnTo, IslandWorkingProfile nworkingProfile)
 {
     toReturnTo  = njobToReturnTo;
     carriedType = nCarriedType;
     character   = nCharacter;
     setJobType(JobType.CarryingSomething);
     workingProfile = nworkingProfile;
 }
Ejemplo n.º 6
0
 public FetchResourceJob(IslandWorkingProfile nworkingProfile, ResourceBlock.ResourceType nTypeToFetch,
                         Character nCharacter, Job njobToReturnTo)
 {
     toReturnTo     = njobToReturnTo;
     workingProfile = nworkingProfile;
     typeToFetch    = nTypeToFetch;
     character      = nCharacter;
     setJobType(JobType.none);
 }
Ejemplo n.º 7
0
 public PlaceResourceJob(ResourceBlock.ResourceType nCarriedType,
                         Character nCharacter, Job njobToReturnTo, IslandWorkingProfile nworkingProfile, BlockLoc nLocToPlace)
 {
     targetBlock = nLocToPlace;
     toReturnTo  = njobToReturnTo;
     carriedType = nCarriedType;
     character   = nCharacter;
     setJobType(JobType.CarryingSomething);
     workingProfile = nworkingProfile;
 }
Ejemplo n.º 8
0
        public JobSiteManager(IslandWorkingProfile nworkingProfile)
        {
            workingProfile = nworkingProfile;
            jobSites       = new List <JobSite>();
            jobSites.Add(new TreesJobSite(nworkingProfile.getPathingProfile()));

            excavationSite = new ExcavationSite(nworkingProfile.getPathingProfile());
            jobSites.Add(excavationSite);
            resourceBlockJobsite = new ResourceBlockJobSite(nworkingProfile.getPathingProfile());
            jobSites.Add(resourceBlockJobsite);
            buildSite = new BuildStie(workingProfile.getPathingProfile());
            jobSites.Add(buildSite);
        }
Ejemplo n.º 9
0
 public ExcavateKickoffJob(IslandWorkingProfile nworkingProfile, Character nCharacter)
 {
     workingProfile = nworkingProfile;
     character      = nCharacter;
     setJobType(JobType.mining);
 }
Ejemplo n.º 10
0
 public override Job getJob(Character newWorker, Ray ray, IslandWorkingProfile workingProfile)
 {
     return(new LoggingKickoffJob(newWorker, workingProfile));
 }
Ejemplo n.º 11
0
 public override Job getJob(Character newWorker, Ray ray, IslandWorkingProfile workingProfile)
 {
     //return new CarryResourceToStockpileKickoffJob(getStockpileAlongRay(ray).getStoredType(),
     //    newWorker, new UnemployedJob(), workingProfile);
     return(new UnemployedJob());
 }
Ejemplo n.º 12
0
 public LoggingKickoffJob(Character nCharacter, IslandWorkingProfile nWorkingProfile)
 {
     character = nCharacter;
     setJobType(JobType.logging);
     workingProfile = nWorkingProfile;
 }
Ejemplo n.º 13
0
 public override Job getJob(Character newWorker, Ray ray, IslandWorkingProfile workingProfile)
 {
     return(new ExcavateKickoffJob(workingProfile, newWorker));
 }
Ejemplo n.º 14
0
 public abstract Job getJob(Character newWorker, Ray ray, IslandWorkingProfile workingProfile);