Functions
-
string
join(
string[]&
arg0,
string&
arg1
)
-
float
fpFromIEEE(
uint
arg0
)
-
uint
fpToIEEE(
float
arg0
)
-
double
fpFromIEEE(
uint64
arg0
)
-
uint64
fpToIEEE(
double
arg0
)
-
float
cos(
float
arg0
)
-
float
sin(
float
arg0
)
-
float
tan(
float
arg0
)
-
float
acos(
float
arg0
)
-
float
asin(
float
arg0
)
-
float
atan(
float
arg0
)
-
float
atan2(
float
arg0,
float
arg1
)
-
float
cosh(
float
arg0
)
-
float
sinh(
float
arg0
)
-
float
tanh(
float
arg0
)
-
float
log(
float
arg0
)
-
float
log10(
float
arg0
)
-
float
pow(
float
arg0,
float
arg1
)
-
float
sqrt(
float
arg0
)
-
float
ceil(
float
arg0
)
-
float
abs(
float
arg0
)
-
float
floor(
float
arg0
)
-
float
round(
float
arg0
)
-
float
fraction(
float
arg0
)
-
double
cos(
double
arg0
)
-
double
sin(
double
arg0
)
-
double
tan(
double
arg0
)
-
double
acos(
double
arg0
)
-
double
asin(
double
arg0
)
-
double
atan(
double
arg0
)
-
double
atan2(
double
arg0,
double
arg1
)
-
double
cosh(
double
arg0
)
-
double
sinh(
double
arg0
)
-
double
tanh(
double
arg0
)
-
double
log(
double
arg0
)
-
double
log10(
double
arg0
)
-
double
pow(
double
arg0,
double
arg1
)
-
double
sqrt(
double
arg0
)
-
double
ceil(
double
arg0
)
-
double
abs(
double
arg0
)
-
double
floor(
double
arg0
)
-
double
round(
double
arg0
)
-
double
fraction(
double
arg0
)
-
Colorf
blackBody(
float
kelvins,
float
brightness
)
-
void
print(
vec2i&
arg0
)
-
void
print(
vec2u&
arg0
)
-
void
print(
vec2f&
arg0
)
-
void
print(
vec2d&
arg0
)
-
void
print(
vec3i&
arg0
)
-
vec3i
vec3i_front(
int
len = 1
)
-
vec3i
vec3i_right(
int
len = 1
)
-
vec3i
vec3i_up(
int
len = 1
)
-
void
print(
vec3f&
arg0
)
-
vec3f
vec3f_front(
float
len = 1
)
-
vec3f
vec3f_right(
float
len = 1
)
-
vec3f
vec3f_up(
float
len = 1
)
-
void
print(
vec3d&
arg0
)
-
vec3d
vec3d_front(
double
len = 1
)
-
vec3d
vec3d_right(
double
len = 1
)
-
vec3d
vec3d_up(
double
len = 1
)
-
void
print(
vec4i&
arg0
)
-
void
print(
vec4f&
arg0
)
-
void
print(
vec4d&
arg0
)
-
quaternionf
quaternionf_fromAxisAngle(
vec3f&
arg0,
float
arg1
)
-
quaternionf
quaternionf_fromVecToVec(
vec3f&
arg0,
vec3f&
arg1
)
-
quaternionf
quaternionf_fromVecToVec(
vec3f&
arg0,
vec3f&
arg1,
vec3f&
up
)
-
quaterniond
quaterniond_fromAxisAngle(
vec3d&
arg0,
double
arg1
)
-
quaterniond
quaterniond_fromVecToVec(
vec3d&
arg0,
vec3d&
arg1
)
-
quaterniond
quaterniond_fromVecToVec(
vec3d&
arg0,
vec3d&
arg1,
vec3d&
up
)
-
recti
recti_area(
int
arg0,
int
arg1,
int
arg2,
int
arg3
)
-
recti
recti_area(
vec2i&
arg0,
vec2i&
arg1
)
-
recti
recti_centered(
recti&
within,
vec2i&
size
)
-
recti
recti_centered(
vec2i&
around,
vec2i&
size
)
-
void
print(
recti&
arg0
)
-
rectf
rectf_area(
float
arg0,
float
arg1,
float
arg2,
float
arg3
)
-
rectf
rectf_area(
vec2f&
arg0,
vec2f&
arg1
)
-
rectf
rectf_centered(
rectf&
within,
vec2f&
size
)
-
rectf
rectf_centered(
vec2f&
around,
vec2f&
size
)
-
void
print(
rectf&
arg0
)
-
rectd
rectd_area(
double
arg0,
double
arg1,
double
arg2,
double
arg3
)
-
rectd
rectd_area(
vec2d&
arg0,
vec2d&
arg1
)
-
rectd
rectd_centered(
rectd&
within,
vec2d&
size
)
-
rectd
rectd_centered(
vec2d&
around,
vec2d&
size
)
-
void
print(
rectd&
arg0
)
-
vec2d
getHexPosition(
uint
x,
uint
y
)
-
vec2d
getHexPosition(
vec2u&
pos
)
-
vec2i
getHexGridPosition(
vec2d&
pos
)
-
bool
advanceHexPosition(
vec2u&
pos,
vec2u&
size,
HexGridAdjacency
dir,
uint
amount = 1
)
-
double
hexToRadians(
HexGridAdjacency
adj
)
-
HexGridAdjacency
radiansToHex(
double
radians
)
-
const StateDefinition@
getStateDefinition(
string&
name
)
-
void
set_physicsWorld(
PhysicsWorld@
world
)
-
PhysicsWorld@
get_physicsWorld(
)
-
void
set_nodePhysicsWorld(
PhysicsWorld@
world
)
-
string
bbescape(
string&
str,
bool
allowWikiLinks = false
)
-
string
makebbLinks(
string&
str
)
-
void
unlockAchievement(
string&
id
)
-
void
sleep(
uint
ms
)
-
int
get_threadID(
)
-
void
print(
string&
arg0
)
-
void
info(
string&
arg0
)
-
void
warn(
string&
arg0
)
-
void
error(
string&
arg0
)
-
void
throw(
string&
arg0
)
-
string
getStackTrace(
bool
verbose = false
)
-
string
get___module__(
)
-
void
openBrowser(
string&
url
)
-
bool
get_mpClient(
)
-
bool
get_mpServer(
)
-
uint
get_mpGalaxiesInFlight(
)
-
void
mpConnect(
string&
address,
int
port = 2048,
string&
password = ""
)
-
void
mpDisconnect(
)
-
bool
mpIsConnected(
)
-
bool
mpIsConnecting(
)
-
void
mpSetPassword(
string&
str
)
-
double
getExactTime(
)
-
double
get_gameTime(
)
-
double
get_frameTime(
)
-
double
get_frameLength(
)
-
uint
get_systemTime(
)
-
double
get_gameSpeed(
)
-
void
set_gameSpeed(
double
speed
)
-
double
randomd(
)
-
double
randomd(
double
min,
double
max
)
-
float
randomf(
)
-
float
randomf(
float
min,
float
max
)
-
uint
randomi(
)
-
int
randomi(
int
min,
int
max
)
-
double
normald(
double
min,
double
max,
int
steps = 3
)
-
vec3d
random3d(
double
radius = 1.0
)
-
vec2d
random2d(
double
radius = 1.0
)
-
vec3d
random3d(
double
minRadius,
double
maxRadius
)
-
vec2d
random2d(
double
minRadius,
double
maxRadius
)
-
double
sqr(
double
arg0
)
-
float
sqr(
float
arg0
)
-
int
sqr(
int
arg0
)
-
double
max(
double
arg0,
double
arg1
)
-
int
max(
int
arg0,
int
arg1
)
-
double
min(
double
arg0,
double
arg1
)
-
int
min(
int
arg0,
int
arg1
)
-
double
clamp(
double
value,
double
minimum,
double
maximum
)
-
int
clamp(
int
value,
int
minimum,
int
maximum
)
-
int
abs(
int
arg0
)
-
double
absceil(
double
arg0
)
-
float
absceil(
float
arg0
)
-
double
absfloor(
double
arg0
)
-
float
absfloor(
float
arg0
)
-
double
angleDiff(
double
a,
double
b
)
-
void
quarticRoots(
double
a,
double
b,
double
c,
double
d,
double
e,
double[]&
roots
)
-
double
newtonArrivalTime(
double
accel,
vec3d&
offset,
vec3d&
relativeVelocity
)
-
void
u8append(
string&
arg0,
int
arg1
)
-
int
u8pos(
string&
arg0,
int
arg1,
int
arg2
)
-
int
u8get(
string&
arg0,
int
arg1
)
-
void
u8next(
string&
arg0,
int&
arg1,
int&
arg2
)
-
void
u8prev(
string&
arg0,
int&
arg1,
int&
arg2
)
-
int
u8(
int
arg0
)
-
void
appendRoman(
int
num,
string&
str
)
-
void
toLowercase(
string&
arg0
)
-
void
toUppercase(
string&
arg0
)
-
uint8
uppercase(
uint8
arg0
)
-
uint8
lowercase(
uint8
arg0
)
-
string
unescape(
string&
arg0
)
-
string
escape(
string&
arg0
)
-
string
localize(
string&
arg0,
bool
requireHash = false,
bool
doUnescape = true
)
-
Color
toColor(
string&
arg0
)
-
string
toString(
double
num,
uint
precision = 5
)
-
string
toString(
float
num,
uint
precision = 5
)
-
string
toString(
int
num,
uint
precision = 5
)
-
string
toString(
uint
num,
uint
precision = 5
)
-
string
toString(
Color
color
)
-
string
standardize(
double
value,
bool
showIntegral = false
)
-
bool
funcSplit(
string&
input,
string&
funcName,
string[]&
arguments,
bool
strip = true
)
-
float
toFloat(
string&
str
)
-
double
toDouble(
string&
str
)
-
int
toInt(
string&
str
)
-
uint
toUInt(
string&
str
)
-
bool
toBool(
string&
str
)
-
vec3d
toVec3d(
string&
str
)
-
void
setClipboard(
string&
arg0
)
-
string
getClipboard(
)
-
void
addConsoleCommand(
string&
name,
ConsoleCommand@
comm
)
-
void
toggleConsole(
)
-
void
print(
bool
arg0
)
-
void
print(
int
arg0
)
-
void
print(
uint
arg0
)
-
void
print(
float
arg0
)
-
void
print(
double
arg0
)
-
void
print(
?&
arg0
)
-
void
print(
)
-
void
printTrace(
bool
verbose = false
)
-
uint64
addressof(
?&
arg0
)
-
string
addrstr(
?&
arg0
)
-
string
dbgstr(
?&
arg0
)
-
void
dbg(
?&
arg0,
string&
prefix = ""
)
-
void
dbg(
string&
prefix = ""
)
-
int
refcnt(
?&
arg0
)
-
string
format(
string&
fmt,
string&
arg1
)
-
string
format(
string&
fmt,
string&
arg1,
string&
arg2
)
-
string
format(
string&
fmt,
string&
arg1,
string&
arg2,
string&
arg3
)
-
string
format(
string&
fmt,
string&
arg1,
string&
arg2,
string&
arg3,
string&
arg4
)
-
string
format(
string&
fmt,
string&
arg1,
string&
arg2,
string&
arg3,
string&
arg4,
string&
arg5
)
-
string
format(
string&
fmt,
string[]&
args
)
-
bool
get_isActive(
)
-
bool
get_inLobby(
)
-
string
getNickname(
)
-
void
inviteFriend(
)
-
void
enterQueue(
string&
type,
uint
players
)
-
bool
get_isQueueReady(
)
-
bool
get_queueRequest(
)
-
bool
get_inQueue(
)
-
void
leaveQueue(
)
-
void
acceptQueue(
)
-
void
rejectQueue(
)
-
int
queueTimer(
)
-
int
getKey(
string
key
)
-
string
getKeyName(
int
key
)
-
int
getKeyFromDisplayName(
string
key
)
-
string
getKeyDisplayName(
int
key
)
-
void
saveKeybinds(
)
-
KeybindGroup@
get_keybindGroup(
uint
index
)
-
uint
get_keybindGroupCount(
)
-
int
modifyKey(
int
key
)
-
void
setSettingInt(
string&
arg0,
int
arg1
)
-
void
setSettingBool(
string&
arg0,
bool
arg1
)
-
void
setSettingDouble(
string&
arg0,
double
arg1
)
-
void
setSettingStr(
string&
arg0,
string&
arg1
)
-
int
getSettingInt(
string&
arg0
)
-
bool
getSettingBool(
string&
arg0
)
-
double
getSettingDouble(
string&
arg0
)
-
string
getSettingStr(
string&
arg0
)
-
int
getSettingMaxInt(
string&
arg0
)
-
int
getSettingMinInt(
string&
arg0
)
-
double
getSettingMaxDouble(
string&
arg0
)
-
double
getSettingMinDouble(
string&
arg0
)
-
void
saveSettings(
)
-
void
applySettings(
)
-
void
getSkinStyles(
dictionary&
result
)
-
uint
getSkinStyleCount(
)
-
string
getElementFlagName(
uint
flags
)
-
const Font@
getFont(
string&
name
)
-
FontType
getFontType(
string&
name
)
-
SkinColor
getColorType(
string&
name
)
-
const Skin@
getSkin(
string&
name
)
-
void
setClip(
recti&
clip
)
-
void
clearClip(
)
-
vec2i
get_screenSize(
)
-
bool
get_windowFocused(
)
-
vec2i
get_windowSize(
)
-
bool
get_mouseOverWindow(
)
-
vec2i
get_mousePos(
)
-
void
set_mousePos(
vec2i&
arg0
)
-
void
set_mouseLock(
bool
lock
)
-
double
get_uiScale(
)
-
void
set_uiScale(
double
value
)
-
void
resetLights(
)
-
Light@
get_light(
uint
index
)
-
void
drawBuffers(
)
-
const Material@
getMaterial(
string&
arg0
)
-
const Material@
getMaterial(
uint
arg0
)
-
string
getMaterialName(
uint
arg0
)
-
uint
getMaterialCount(
)
-
const Model@
getModel(
string&
arg0
)
-
const SpriteSheet@
getSpriteSheet(
string&
arg0
)
-
const SpriteSheet@
getSpriteSheet(
uint
arg0
)
-
string
getSpriteSheetName(
uint
arg0
)
-
uint
getSpriteSheetCount(
)
-
Sprite
getSprite(
string&
arg0
)
-
string
getSpriteDesc(
Sprite&
arg0
)
-
void
takeScreenshot(
string&
filename,
bool
increment = true
)
-
const Material@
get_error(
)
-
const Model@
get_error(
)
-
const SpriteSheet@
get_error(
)
-
void
nodeConeSelect(
line3dd&
line,
double
slope,
Node@[]&
arg2
)
-
void
set_BEZIER_POINTS(
uint
arg0,
vec4f&
arg1
)
-
void
setSkybox(
const Material@
arg0
)
-
void
applyTransform(
vec3d&
pos,
vec3d&
scale,
quaterniond&
rot
)
-
void
applyAbsTransform(
vec3d&
pos,
vec3d&
scale,
quaterniond&
rot
)
-
void
applyBBTransform(
vec3d&
pos,
double
width,
double
rot
)
-
void
undoTransform(
)
-
void
getBillboardVecs(
vec3d&
upLeft,
vec3d&
upRight,
double
rot = 0
)
-
void
getBillboardVecs(
vec3d&
from,
vec3d&
upLeft,
vec3d&
upRight,
double
rot = 0
)
-
const ParticleSystem@
getParticleSystem(
string&
name
)
-
ParticleSystemNode@
playParticleSystem(
string&
name,
vec3d&
position,
float
scale = 1,
Node@
parent = null
)
-
ParticleSystemNode@
playParticleSystem(
ParticleSystem&
system,
vec3d&
position,
float
scale = 1,
Node@
parent = null
)
-
void
spawnShot(
vec3d&
pos,
vec3d&
vel
)
-
double
getCameraDistance(
vec3d&
pos,
double
scale = 0
)
-
vec3d
get_cameraPos(
)
-
vec3d
get_cameraUp(
)
-
vec3d
get_cameraFacing(
)
-
bool
isSphereVisible(
vec3d&
center,
double
radius
)
-
void
drawRectangle(
recti&
pos,
Color&
color
)
-
void
drawRectangle(
recti&
pos,
const Material@
mat,
Color&
color
)
-
void
drawRectangle(
recti&
pos,
Color&
topleft,
Color&
topright,
Color&
botright,
Color&
botleft
)
-
void
updateRenderCamera(
Camera&
cam
)
-
void
prepareRender(
Camera&
cam
)
-
void
prepareRender(
Camera&
cam,
recti&
arg1
)
-
void
renderWorld(
)
-
void
renderBillboard(
Material&
mat,
vec3d&
pos,
double
width,
double
rotation = 0
)
-
void
renderBillboard(
SpriteSheet&
sheet,
uint
index,
vec3d&
pos,
double
width,
double
rotation = 0
)
-
void
renderBillboard(
Sprite&
spr,
vec3d&
pos,
double
width,
double
rotation = 0
)
-
void
renderBillboard(
Material&
mat,
vec3d&
pos,
double
width,
double
rotation,
Color&
arg4
)
-
void
renderBillboard(
SpriteSheet&
sheet,
uint
index,
vec3d&
pos,
double
width,
double
rotation,
Color&
arg5
)
-
void
renderBillboard(
Sprite&
spr,
vec3d&
pos,
double
width,
double
rotation,
Color&
arg4
)
-
void
renderPlane(
Material&
mat,
vec3d&
pos,
double
width,
Color&
arg3,
double
rotation = 0
)
-
void
drawFPSGraph(
recti&
pos
)
-
void
drawPolygonStart(
uint
triangles,
const Material@
mat = null
)
-
void
drawPolygonStart(
uint
triangles,
const Material@
mat,
Color&
arg2
)
-
void
drawPolygonStart(
PolygonType
type,
uint
polyCount,
const Material@
mat = null
)
-
void
drawPolygonEnd(
)
-
void
drawPolygonPoint(
vec2i&
arg0
)
-
void
drawPolygonPoint(
vec2i&
arg0,
vec2f&
arg1
)
-
void
drawPolygonPoint(
vec2i&
arg0,
vec2f&
arg1,
Color&
arg2
)
-
void
drawPolygonPoint(
vec2i&
arg0,
Color&
arg1
)
-
void
drawPolygonPoint(
vec2f&
arg0
)
-
void
drawPolygonPoint(
vec2f&
arg0,
vec2f&
arg1
)
-
void
drawPolygonPoint(
vec2f&
arg0,
Color&
arg1
)
-
void
drawPolygonPoint(
vec3d&
arg0
)
-
void
drawPolygonPoint(
vec3d&
arg0,
vec2f&
arg1
)
-
void
drawPolygonPoint(
vec3d&
arg0,
Color&
arg1
)
-
void
drawPolygonPoint(
vec3d&
arg0,
vec2f&
arg1,
Color&
arg2
)
-
void
drawLine(
vec2i&
from,
vec2i&
to,
int
size = 1,
const Material@
mat = null
)
-
void
drawLine(
vec2i&
from,
vec2i&
to,
Color&
color,
int
size = 1,
const Material@
mat = null
)
-
void
getVideoModes(
VideoMode[]&
output
)
-
void
getMonitorNames(
string[]&
output
)
-
void
inspect(
string&
name,
?&
arg1
)
-
void
debug(
)
-
SubsystemTag
getSubsystemTag(
string&
tag
)
-
uint
getShipsetCount(
)
-
const Shipset@
getShipset(
uint
id
)
-
const Shipset@
getShipset(
string&
ident
)
-
uint
getHullCount(
)
-
const Hull@
getHullDefinition(
uint
id
)
-
const Hull@
getHullDefinition(
string&
ident
)
-
void
readHullDefinitions(
string&
filename,
Hull@[]&
hulls
)
-
void
writeHullDefinitions(
string&
filename,
Hull@[]&
hulls
)
-
const EffectDef@
getEffectDefinition(
EffectType
type
)
-
const EffectDef@
getEffectDefinition(
string&
name
)
-
EffectorDef@
getEffectorDef(
uint
id
)
-
EffectorDef@
getEffectorDef(
string&
ident
)
-
Effector@
getEffectorByID(
uint
id
)
-
int
getSubsystemDefCount(
)
-
const SubsystemDef@
getSubsystemDef(
int
index
)
-
const SubsystemDef@
getSubsystemDef(
string&
id
)
-
int
getSubsystemVariable(
string&
name
)
-
int
getHexVariable(
string&
name
)
-
int
getShipVariable(
string&
name
)
-
const Design@
makeDesign(
DesignDescriptor&
desc
)
-
bool
receive(
DataList@&
list,
Serializable@
obj
)
-
bool
receive(
DataList@&
list,
Object@&
obj
)
-
void
yield(
Serializable&
obj
)
-
void
yield(
Object&
obj
)
-
Message
startYield(
)
-
void
finishYield(
)
-
void
setNickname(
string&
nick
)
-
Player@[]@
getPlayers(
)
-
Player@
getPlayer(
int
id
)
-
DisconnectReason
get_mpDisconnectReason(
)
-
float
get_galaxySendProgress(
)
-
bool
get_awaitingGalaxy(
)
-
void
mpQueryServers(
)
-
bool
mpIsQuerying(
)
-
void
mpGetServers(
GameServer[]&
list
)
-
void
mpKick(
int
playerId
)
-
void
mpHost(
string&
gamename = "",
uint
port = 2048,
uint
maxPlayers = 0,
bool
isPublic = true,
bool
punchthrough = true,
string&
password = ""
)
-
void
mpConnect(
GameServer&
game,
bool
disablePunchthrough = false,
string&
password = ""
)
-
void
setCheatsEnabled(
bool
arg0
)
-
bool
getCheatsEnabled(
)
-
void
cheatSeeAll(
bool
arg0
)
-
void
cheatColonize(
bool
arg0
)
-
void
cheatSpawnFlagship(
const Object@
arg0,
const Design@
arg1,
const Empire@
arg2
)
-
void
cheatSpawnFlagship(
vec3d
arg0,
const Design@
arg1,
const Empire@
arg2
)
-
void
cheatSpawnSupports(
const Object@
arg0,
const Design@
arg1,
uint
arg2
)
-
void
cheatSpawnSupports(
vec3d
arg0,
const Design@
arg1,
uint
arg2,
const Empire@
arg3
)
-
void
cheatSpawnOrbital(
vec3d
arg0,
uint
arg1,
const Empire@
arg2
)
-
void
cheatActivateAI(
)
-
void
cheatInfluence(
int
arg0
)
-
void
cheatResearch(
double
arg0
)
-
void
cheatMoney(
int
arg0
)
-
void
cheatLabor(
const Object@
arg0,
double
arg1
)
-
void
cheatFTL(
int
arg0
)
-
void
cheatEnergy(
int
arg0
)
-
void
cheatChangeOwner(
const Object@
arg0,
const Empire@
arg1
)
-
void
cheatDestroy(
const Object@
arg0
)
-
void
cheatDebugAI(
const Empire@
arg0
)
-
void
cheatCommandAI(
const Empire@
arg0,
string
arg1
)
-
void
cheatAlliance(
Empire&
arg0,
Empire&
arg1
)
-
void
cheatTrigger(
const Object@
arg0,
const Empire@
arg1,
string
arg2
)
-
void
playAsEmpire(
const Empire@
arg0
)
-
void
declareWar(
Empire&
arg0
)
-
void
declarePeace(
Empire&
arg0
)
-
bool
hasProposedPeace(
Empire&
arg0,
Empire&
arg1
)
-
bool
isForcedPeace(
Empire&
arg0,
Empire&
arg1
)
-
uint
getMajorEmpireCount(
)
-
void
mpChat(
string
arg0
)
-
void
markDesignObsolete(
const Design@
arg0,
bool
arg1
)
-
Empire@
getSenateLeader(
)
-
DataList@
getInfluenceCardStack(
)
-
void
buyCardFromInfluenceStack(
int
arg0
)
-
void
playInfluenceCard(
int
arg0,
const Serializable@
arg1,
uint
arg2
)
-
double
getInfluenceDrawInterval(
)
-
double
getInfluenceDrawTimer(
)
-
DataList@
getActiveInfluenceVotes(
)
-
DataList@
getInfluenceVoteByID(
uint
arg0
)
-
DataList@
getInfluenceVoteHistory(
uint
arg0,
int
arg1,
bool
arg2
)
-
void
leaveInfluenceVote(
uint
arg0
)
-
void
makeInfluenceVoteOffer(
uint
arg0,
const Serializable@
arg1
)
-
void
claimInfluenceVoteOffer(
uint
arg0,
int
arg1
)
-
void
withdrawInfluenceVote(
uint
arg0
)
-
void
sendInfluenceVoteMessage(
uint
arg0,
string
arg1
)
-
DataList@
getActiveInfluenceEffects(
)
-
void
dismissInfluenceEffect(
int
arg0
)
-
Empire@
getInfluenceEffectOwner(
int
arg0
)
-
void
createTreaty(
const Serializable@
arg0
)
-
DataList@
getActiveTreaties(
)
-
void
inviteToTreaty(
int
arg0,
const Empire@
arg1
)
-
void
leaveTreaty(
int
arg0
)
-
void
declineTreaty(
int
arg0
)
-
void
joinTreaty(
int
arg0
)
-
void
offerSurrender(
const Empire@
arg0
)
-
void
demandSurrender(
const Empire@
arg0
)
-
void
makeDonation(
const Empire@
arg0,
const Serializable@
arg1
)
-
double
getGlobalValue(
uint
arg0
)
-
void
sendPingAll(
vec3d
arg0,
uint
arg1
)
-
void
sendPingAllied(
vec3d
arg0,
uint
arg1
)
-
bool
isWonderUsed(
uint
arg0
)
-
bool
hasDialogue(
)
-
DataList@
getActiveDialogue(
)
-
DataList@
getActiveDialogueObjective(
)
-
void
skipDialogueObjective(
)
-
void
srvObjectiveComplete(
string
arg0
)
-
void
setGameSpeed(
double
arg0
)
-
DataList@
getSystems(
)
-
Region@
getRegion(
vec3d
arg0
)
-
Object@
getObjectByID(
int
id
)
-
bool
getSafeCallWait(
)
-
void
setSafeCallWait(
bool
value
)
-
int
getObjectTypeId(
string&
type
)
-
string
getObjectTypeName(
int
id
)
-
Object@[]@
findInBox(
vec3d&
min,
vec3d&
max,
uint
ownerFilter = 0
)
-
Object@
trace(
line3dd&
ray,
uint
ownerFilter = 0
)
-
string
get_statName(
EmpireStat
arg0
)
-
uint
getEmpireCount(
)
-
Empire@
getEmpire(
uint
index
)
-
Empire@
getEmpireByID(
uint8
id
)
-
const SoundSource@
getSound(
string&
id
)
-
Sound@
playTrack(
string&
filename,
bool
loop = false,
bool
pause = false
)
-
Sound@
playTrack(
string&
filename,
vec3d&
pos,
bool
loop = false,
bool
pause = false
)
-
bool
get_soundEnabled(
)
-
float
get_soundVolume(
)
-
void
set_soundVolume(
float
arg0
)
-
void
set_soundScale(
float
arg0
)
-
int
variable(
string&
name
)
-
double
get(
string&
name
)
-
void
set(
string&
name,
double
value
)
-
uint
getEmpireAttribute(
string&
name
)
-
string
get_profileRoot(
)
-
string
get_modProfile(
)
-
string
get_modProfile(
string&
folder
)
-
string
get_baseProfile(
string&
folder
)
-
string
resolve(
string&
filename
)
-
void
deleteFile(
string&
filename
)
-
void
makeDirectory(
string&
dirname
)
-
bool
isDirectory(
string&
path
)
-
int64
getModifiedTime(
string&
path
)
-
bool
fileExists(
string&
path
)
-
string
path_join(
string&
first,
string&
second
)
-
string
path_up(
string&
path
)
-
string
getBasename(
string&
path,
bool
includeExtension = true
)
-
int64
getSystemTime(
)
-
string
strftime(
string&
format,
int64
time
)
-
AnyClass@
getClass(
string&
spec
)
-
AnyClass@
getClass(
?&
arg0
)
-
ScriptModule@
getScriptModule(
string&
name
)
-
ScriptModule@
get_THIS_MODULE(
)
-
void
getWikiPage(
string&
title,
WebData&
dat
)
-
void
startNewGame(
Message&
arg0
)
-
void
startNewGame(
)
-
void
stopGame(
)
-
void
loadGame(
string&
fname
)
-
bool
saveGame(
string&
fname
)
-
void
saveWorldScreen(
string&
fname
)
-
void
switchToMenu(
)
-
void
switchToGame(
)
-
void
quitGame(
)
-
void
getSaveFileInfo(
string&
fname,
SaveFileInfo&
dat
)
-
uint
getSaveVersion(
string&
fname
)
-
void
preRenderClient(
)
-
void
renderClient(
)
void
sleep(
uint
ms
)
Stops thread processing for some number of milliseconds.
-
uint
ms — Number of milliseconds to sleep (approximately)
double
randomd(
)
Generate a random double value.
Returns
double
: Random value from [0.0,1.0).
float
randomf(
)
Generate a random float value.
Returns
float
: Random value from [0.f,1.f).
float
randomf(
float
min,
float
max
)
Generate a random float value.
-
float
min — Minimum return.
-
float
max — Maximum return (non-inclusive).
Returns
float
: Random value from [min,max).
uint
randomi(
)
Generate a random uint value.
Returns
uint
: Random value from 0 to UINT_MAX, inclusive.
int
randomi(
int
min,
int
max
)
Generate a random int value.
-
int
min — Minimum return.
-
int
max — Maximum return (inclusive).
Returns
int
: Random value from min to max, inclusive.
double
normald(
double
min,
double
max,
int
steps = 3
)
Generates an approximately normally distributed value within a range, within an average return at the mean of min and max.
-
double
min — Minimum return
-
double
max — Maximum return (non-inclusive)
-
int
steps — Number of steps to iterate (more is a tighter distribution)
Returns
double
: Random value from [min,max)
vec3d
random3d(
double
radius = 1.0
)
Generates a random 3D rotation, uniformly distributed over a sphere surface.
-
double
radius — Radius of sphere.
Returns
vec3d
: Random rotation vector.
vec2d
random2d(
double
radius = 1.0
)
Generates a random 2D rotation, uniformly distributed over a circle's circumference.
-
double
radius — Radius of circle.
Returns
vec2d
: Random rotation vector.
vec3d
random3d(
double
minRadius,
double
maxRadius
)
Generates a random 3D rotation, distributed evenly on the volume between minRadius and maxRadius.
-
double
minRadius — Minimum radius of the vector.
-
double
maxRadius — Maximum radius of the vector.
Returns
vec3d
: Random rotation vector.
vec2d
random2d(
double
minRadius,
double
maxRadius
)
Generates a random 2D rotation, distributed evenly on the area between minRadius and maxRadius.
-
double
minRadius — Minimum radius of the vector.
-
double
maxRadius — Maximum radius of the vector.
Returns
vec2d
: Random rotation vector.
vec3d
toVec3d(
string&
str
)
Parses a vec3d printed by vec3d::toString()
string
format(
string&
fmt,
string[]&
args
)
Replaces $n in fmt with the related argument.
-
string&
fmt — Format to use.
-
string[]&
args — Arguments.
Returns
string
: Formatted string.
string
getElementFlagName(
uint
flags
)
Retrieve the string name of a combination of skin flags.
-
uint
flags — Flag mask to retrieve the name for.
Returns
string
: Name(s) of flags.
void
setClip(
recti&
clip
)
Set the currently active clipping rectangle.
-
recti&
clip — Rectangle to clip all subsequent 2D draws in.
vec2i
get_screenSize(
)
Get the current size of the game screen.
vec2i
get_windowSize(
)
Get the actual window size (independent of ui scaling).
vec2i
get_mousePos(
)
Get the current mouse position.
void
applyBBTransform(
vec3d&
pos,
double
width,
double
rot
)
Applies a transformation that rotates a model in the same way a billboard would rotate. Call undoTransform() afterwards.
void
getBillboardVecs(
vec3d&
upLeft,
vec3d&
upRight,
double
rot = 0
)
Fetches the two cached vectors necessary to build a billboard.
-
vec3d&
upLeft — Top left corner offset.
-
vec3d&
upRight — Top right corner offset.
-
double
rot — Optional rotation to apply to the billboard.
void
getBillboardVecs(
vec3d&
from,
vec3d&
upLeft,
vec3d&
upRight,
double
rot = 0
)
Fetches the two cached vectors necessary to build a billboard that faces the camera.
-
vec3d&
from — Position to face the billboard from.
-
vec3d&
upLeft — Top left corner offset.
-
vec3d&
upRight — Top right corner offset.
-
double
rot — Optional rotation to apply to the billboard.
Object@
getObjectByID(
int
id
)
Returns the Object associated with the ID.
-
int
id — Unique identifier of the object to retrieve.
Returns
Object@
: Null if the object doesn't exist.
Object@[]@
findInBox(
vec3d&
min,
vec3d&
max,
uint
ownerFilter = 0
)
Returns an array of objects within the specified region.
-
vec3d&
min — Minimum bound of the region.
-
vec3d&
max — Maximum bound of the region.
-
uint
ownerFilter — Optional owner filter mask. Bit 1 filters for objects not owned by a player.
Object@
trace(
line3dd&
ray,
uint
ownerFilter = 0
)
Returns the first object located along a line.
-
line3dd&
ray — Line to trace along.
-
uint
ownerFilter — Optional owner filter mask. Bit 1 filters for objects not owned by a player.
Returns
Object@
: First object (if any) hit by the trace.
Sound@
playTrack(
string&
filename,
bool
loop = false,
bool
pause = false
)
Plays a streaming sound source from the beginning.
-
string&
filename — Filename to play.
-
bool
loop — Whether to loop the sound. Defaults to false.
-
bool
pause — Whether to start the sound paused. Defaults to false.
Returns
Sound@
: Handle to the sound.
Sound@
playTrack(
string&
filename,
vec3d&
pos,
bool
loop = false,
bool
pause = false
)
Plays a streaming sound source from the beginning.
-
string&
filename — Filename to play.
-
vec3d&
pos — Position to play from.
-
bool
loop — Whether to loop the sound. Defaults to false.
-
bool
pause — Whether to start the sound paused. Defaults to false.
Returns
Sound@
: Handle to the sound.
float
get_soundVolume(
)
Returns the current volume of the sound system.
Returns
float
: Multiplier to output volume between 0 and 1.
string
get_profileRoot(
)
Returns
string
: Path to the game's global profile folder.
string
get_modProfile(
)
Returns
string
: Path to the current mod's profile folder.
string
get_modProfile(
string&
folder
)
Get the path to a child directory in the mod's profile.
Returns
string
: Path to the folder.
string
get_baseProfile(
string&
folder
)
Get the path to a child directory in the base profile.
Returns
string
: Path to the folder.
string
resolve(
string&
filename
)
Resolves the filename to an absolute path to an overriden file. The top-most mod with a file in the same relative path is used.
-
string&
filename — Relative filename to resolve.
bool
isDirectory(
string&
path
)
Check whether a particular path is a directory.
-
string&
path — Path of the directory to check.
Returns
bool
: Whether a directory exists at that path.
bool
fileExists(
string&
path
)
Check whether a particular file exists.
-
string&
path — Path of the file to check.
Returns
bool
: Whether a file exists at that path.
string
getBasename(
string&
path,
bool
includeExtension = true
)
Get the basename of a path.
-
string&
path — Path to get basename from.
-
bool
includeExtension — Whether to include the extension in the basename.
Returns
string
: Path basename.