Starsector API
Loading...
Searching...
No Matches
WarfleetAssignmentAI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.procgen.themes;
2
3import com.fs.starfarer.api.campaign.CampaignFleetAPI;
4import com.fs.starfarer.api.util.Misc;
5
13
14 protected boolean doCapture = true;
15 protected boolean doRaid = true;
16
17 public WarfleetAssignmentAI(CampaignFleetAPI fleet, boolean doCapture, boolean doRaid) {
18 super(fleet);
19 this.doCapture = doCapture;
20 this.doRaid = doRaid;
21 }
22
23
24 @Override
25 public void advance(float amount) {
26 if (Misc.isFleetReturningToDespawn(fleet)) return;
27
28 super.advance(amount);
29
30 if (doCapture) {
31 checkCapture(amount);
32 }
33 //checkBuild(amount);
34 if (doRaid) {
35 checkRaid(amount);
36 }
37 }
38
39
40 @Override
41 protected void giveInitialAssignments() {
42 }
43
44 @Override
45 protected void pickNext() {
46 }
47
48 public boolean isDoRaid() {
49 return doRaid;
50 }
51
52
53}
54
55
56
57
58
59
60
61
62
63
WarfleetAssignmentAI(CampaignFleetAPI fleet, boolean doCapture, boolean doRaid)