You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The registry expander takes care or adding new items to registries without requiring the presence of the galimulator jar.
13
+
*
14
+
* @since 1.5.0
15
+
*/
16
+
publicfinalclassRegistryExpander {
17
+
18
+
/**
19
+
* Interface that is used to delegate the static methods of the Registry expander to.
20
+
*/
21
+
publicstaticinterfaceImplementation {
22
+
23
+
/**
24
+
* Adds an empire special to the internal empire special registry.
25
+
*
26
+
* @param key The namespaced key to register the special under
27
+
* @param enumName The name of the special as returned by {@link Enum#name()}. Convention is to have it in UPPERCASE_SNAKE_CASE
28
+
* @param name The user-friendly name of the special.
29
+
* @param abbreviation The user-friendly abbreviation of the special. Usually 3 letters long.
30
+
* @param description The description of the special.
31
+
* @param color The color of the special. Used for the special boxes.
32
+
* @param techMod The technological impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
33
+
* @param indMod The industrial impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact. The industry modifier changes the ship cap, along other things.
34
+
* @param stabilityMod The stability impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
35
+
* @param peaceMod Exact use not fully explored.
36
+
* @param bansAlliances Whether empires with this special are banned from joining alliances.
* Adds a flag symbol to the internal flag symbol registry.
44
+
* The flag symbol will have the specified parameters.
45
+
*
46
+
* @param key The namespaced key to register the symbol under
47
+
* @param enumName The name of the symbol as specified by {@link Enum#name()}. Convention is to have it in UPPERCASE_SNAKE_CASE
48
+
* @param sprite The name of the sprite. For the file "data/sprites/sprite.png" the name is "sprite.png". Make sure to create that file at starloader startup / onInit() of your extension
49
+
* @param mustBeSquare Whether any flag components with this symbol must be square
50
+
* @param width The MAXIMUM width of the component, or 0 for no limitations
51
+
* @param height The MAXIMUM height of the component, or 0 for no limitations
52
+
* @return The created {@link FlagSymbol} instance.
* The currently active implementation used for static methods in this class.
60
+
*/
61
+
privatestatic@NullableImplementationimpl;
62
+
63
+
/**
64
+
* Adds an empire special to the internal empire special registry.
65
+
*
66
+
* @param key The namespaced key to register the special under
67
+
* @param enumName The name of the special as returned by {@link Enum#name()}. Convention is to have it in UPPERCASE_SNAKE_CASE
68
+
* @param name The user-friendly name of the special.
69
+
* @param abbreviation The user-friendly abbreviation of the special. Usually 3 letters long.
70
+
* @param description The description of the special.
71
+
* @param color The color of the special. Used for the special boxes.
72
+
* @param techMod The technological impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
73
+
* @param indMod The industrial impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact. The industry modifier changes the ship cap, along other things.
74
+
* @param stabilityMod The stability impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
75
+
* @param peaceMod Exact use not fully explored.
76
+
* @param bansAlliances Whether empires with this special are banned from joining alliances.
* Adds a flag symbol to the internal flag symbol registry.
86
+
* The flag symbol will have the specified parameters.
87
+
*
88
+
* @param key The namespaced key to register the symbol under
89
+
* @param enumName The name of the symbol as specified by {@link Enum#name()}. Convention is to have it in UPPERCASE_SNAKE_CASE
90
+
* @param sprite The name of the sprite. For the file "data/sprites/sprite.png" the name is "sprite.png". Make sure to create that file at starloader startup / onInit() of your extension
91
+
* @param mustBeSquare Whether any flag components with this symbol must be square
92
+
* @param width The MAXIMUM width of the component, or 0 for no limitations
93
+
* @param height The MAXIMUM height of the component, or 0 for no limitations
94
+
* @return The created {@link FlagSymbol} instance.
@SuppressWarnings("null") // Since we removed the enum access flag for the EmpireSpecial class, eclipse treats it as an ordinary class; thus we have to use hacks to make it comprehend that the members are not null.
* Whether empires with this special are banned from joining alliances.
25
+
*/
26
+
protectedfinalbooleanalliancesBanned;
27
+
28
+
/**
29
+
* The color of the special. Used for GUI-related tasks, more specifically
30
+
* the color of the name of the special within the leaderboard as well as
31
+
* the color of the box of the special within the empire screen.
32
+
*/
33
+
protectedfinalGalColorcolor;
34
+
35
+
/**
36
+
* The industrial impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact. The industry modifier changes the ship cap, along other things.
37
+
*/
38
+
protectedfinalfloatind;
39
+
40
+
/**
41
+
* Exact use of this variable not fully explored.
42
+
*/
43
+
protectedfinalfloatpeace;
44
+
45
+
/**
46
+
* The stability impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact.
47
+
*/
48
+
protectedfinalfloatstability;
49
+
50
+
/**
51
+
* The technological impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
52
+
*/
53
+
protectedfinalfloattech;
54
+
55
+
/**
56
+
* The constructor. Instances of this class should be registered via the appropriate registry.
57
+
*
58
+
* @param enumName The name of the special as returned by {@link Enum#name()}. Convention is to have it in UPPERCASE_SNAKE_CASE
59
+
* @param ordinal The integer ordinal of the enum instance as specified by {@link Enum#ordinal()}. Should be equal to the registration order.
60
+
* @param name The user-friendly name of the special.
61
+
* @param abbreviation The user-friendly abbreviation of the special. Usually 3 letters long.
62
+
* @param description The description of the special.
63
+
* @param color The color of the special. Used for the special boxes.
64
+
* @param tech The technological impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
65
+
* @param ind The industrial impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact. The industry modifier changes the ship cap, along other things.
66
+
* @param stability The stability impact of the special on the empire. Ranges from 0.0 to whatever. 1.0 for no impact
67
+
* @param peace Exact use not fully explored.
68
+
* @param alliancesBanned Whether empires with this special are banned from joining alliances.
0 commit comments