Starsector API
Loading...
Searching...
No Matches
JumpPointAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign;
2
3import java.util.List;
4
5
6public interface JumpPointAPI extends SectorEntityToken {
7
8 public static class JumpDestination {
9 private SectorEntityToken destination;
10 private String labelInInteractionDialog;
11
12 private float minDistFromToken = 0;
13 private float maxDistFromToken = 0;
14
15 public JumpDestination(SectorEntityToken destination, String labelInInteractionDialog) {
16 this.destination = destination;
17 this.labelInInteractionDialog = labelInInteractionDialog;
18 }
19
20 public SectorEntityToken getDestination() {
21 return destination;
22 }
23 public void setDestination(SectorEntityToken destination) {
24 this.destination = destination;
25 }
26 public String getLabelInInteractionDialog() {
27 return labelInInteractionDialog;
28 }
29 public void setLabelInInteractionDialog(String labelInInteractionDialog) {
30 this.labelInInteractionDialog = labelInInteractionDialog;
31 }
32 public float getMinDistFromToken() {
33 return minDistFromToken;
34 }
35 public void setMinDistFromToken(float minDistFromToken) {
36 this.minDistFromToken = minDistFromToken;
37 }
38 public float getMaxDistFromToken() {
39 return maxDistFromToken;
40 }
41 public void setMaxDistFromToken(float maxDistFromToken) {
42 this.maxDistFromToken = maxDistFromToken;
43 }
44 }
45
46 void setRadius(float radius);
47
48 void addDestination(JumpDestination destination);
51 List<JumpDestination> getDestinations();
52
53
60 void setDestinationVisual(String category, String id, SectorEntityToken entity);
65
67
71 boolean isStarAnchor();
72
77
78 void setAutoCreateEntranceFromHyperspace(boolean autoCreateEntrance);
79
81
82
84
92
93
102
103
107 void open();
108
112 void close();
113
117 void forceOpen();
118
123
125
126 boolean isWormhole();
127
128
129}
130
131
SectorEntityToken getDestinationVisualEntity()
void setAutoCreateEntranceFromHyperspace(boolean autoCreateEntrance)
void setRelatedPlanet(SectorEntityToken relatedPlanet)
void setDestinationVisual(String category, String id, SectorEntityToken entity)
void removeDestination(SectorEntityToken destination)
void addDestination(JumpDestination destination)
List< JumpDestination > getDestinations()
void setStandardWormholeToStarOrPlanetVisual(SectorEntityToken entity)
void autoUpdateHyperJumpPointLocationBasedOnInSystemEntityAtRadius(SectorEntityToken entity, float radius)