Starsector API
Loading...
Searching...
No Matches
BattleObjectiveEffect.java
Go to the documentation of this file.
1package com.fs.starfarer.api.combat;
2
3import java.util.List;
4
5public interface BattleObjectiveEffect {
6
7 public static class ShipStatusItem {
8 private String title;
9 private String description;
10 private boolean isDebuff;
11 private Object key = null;
12 public ShipStatusItem(String title, String description, boolean isDebuff) {
13 this.title = title;
14 this.description = description;
15 this.isDebuff = isDebuff;
16 }
17 public String getTitle() {
18 return title;
19 }
20 public void setTitle(String title) {
21 this.title = title;
22 }
23 public String getDescription() {
24 return description;
25 }
26 public void setDescription(String description) {
27 this.description = description;
28 }
29 public boolean isDebuff() {
30 return isDebuff;
31 }
32 public void setDebuff(boolean isDebuff) {
33 this.isDebuff = isDebuff;
34 }
35 public Object getKey() {
36 return key;
37 }
38 public void setKey(Object key) {
39 this.key = key;
40 }
41 }
42
43 void init(CombatEngineAPI engine, BattleObjectiveAPI objective);
44
49 void advance(float amount);
50
56 List<ShipStatusItem> getStatusItemsFor(ShipAPI ship);
58
60}
61
62
63
void init(CombatEngineAPI engine, BattleObjectiveAPI objective)
List< ShipStatusItem > getStatusItemsFor(ShipAPI ship)