Starsector API
Loading...
Searching...
No Matches
ShipAIConfig.java
Go to the documentation of this file.
1
package
com.fs.starfarer.api.combat;
2
3
public
class
ShipAIConfig
implements
Cloneable {
4
5
6
@Override
7
public
ShipAIConfig
clone
() {
8
try
{
9
return
(
ShipAIConfig
) super.clone();
10
}
catch
(CloneNotSupportedException e) {
11
return
null
;
// should not happen
12
}
13
}
14
15
public
boolean
alwaysStrafeOffensively
=
false
;
16
public
boolean
backingOffWhileNotVentingAllowed
=
true
;
17
public
boolean
turnToFaceWithUndamagedArmor
=
true
;
18
19
public
boolean
burnDriveIgnoreEnemies
=
false
;
20
21
public
String
personalityOverride
=
null
;
22
23
public
ShipAIConfig
() {
24
}
25
26
public
void
copyFrom
(
ShipAIConfig
other) {
27
if
(other ==
null
) {
28
return
;
29
}
30
alwaysStrafeOffensively
= other.
alwaysStrafeOffensively
;
31
backingOffWhileNotVentingAllowed
= other.
backingOffWhileNotVentingAllowed
;
32
turnToFaceWithUndamagedArmor
= other.
turnToFaceWithUndamagedArmor
;
33
burnDriveIgnoreEnemies
= other.
burnDriveIgnoreEnemies
;
34
personalityOverride
= other.
personalityOverride
;
35
}
36
}
com.fs.starfarer.api.combat.ShipAIConfig
Definition
ShipAIConfig.java:3
com.fs.starfarer.api.combat.ShipAIConfig.ShipAIConfig
ShipAIConfig()
Definition
ShipAIConfig.java:23
com.fs.starfarer.api.combat.ShipAIConfig.burnDriveIgnoreEnemies
boolean burnDriveIgnoreEnemies
Definition
ShipAIConfig.java:19
com.fs.starfarer.api.combat.ShipAIConfig.copyFrom
void copyFrom(ShipAIConfig other)
Definition
ShipAIConfig.java:26
com.fs.starfarer.api.combat.ShipAIConfig.backingOffWhileNotVentingAllowed
boolean backingOffWhileNotVentingAllowed
Definition
ShipAIConfig.java:16
com.fs.starfarer.api.combat.ShipAIConfig.personalityOverride
String personalityOverride
Definition
ShipAIConfig.java:21
com.fs.starfarer.api.combat.ShipAIConfig.alwaysStrafeOffensively
boolean alwaysStrafeOffensively
Definition
ShipAIConfig.java:15
com.fs.starfarer.api.combat.ShipAIConfig.turnToFaceWithUndamagedArmor
boolean turnToFaceWithUndamagedArmor
Definition
ShipAIConfig.java:17
com.fs.starfarer.api.combat.ShipAIConfig.clone
ShipAIConfig clone()
Definition
ShipAIConfig.java:7
src
com
fs
starfarer
api
combat
ShipAIConfig.java
Generated by
1.12.0