#
Class: Camera#
Hierarchy- Camera
#
Accessors#
boundMaxXstatic boundMaxX(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:34
#
boundMaxYstatic boundMaxY(): number
Returns: number
Defined in: handles/camera.ts:38
#
boundMinXstatic boundMinX(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:20
#
boundMinYstatic boundMinY(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:27
#
eyePointstatic eyePoint(): Point
Return-value for the local players camera only.
Returns: Point
Defined in: handles/camera.ts:87
#
eyeXstatic eyeX(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:66
#
eyeYstatic eyeY(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:73
#
eyeZstatic eyeZ(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:80
#
targetPointstatic targetPoint(): Point
Return-value for the local players camera only.
Returns: Point
Defined in: handles/camera.ts:94
#
targetXstatic targetX(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:45
#
targetYstatic targetY(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:52
#
targetZstatic targetZ(): number
Return-value for the local players camera only.
Returns: number
Defined in: handles/camera.ts:59
#
visiblestatic visible(): boolean
Returns: boolean
Defined in: handles/camera.ts:13
static visible(flag: boolean): void
#
Parameters:Name | Type |
---|---|
flag | boolean |
Returns: void
Defined in: handles/camera.ts:9
#
Methods#
SetCinematicScenestatic SetCinematicScene(portraitUnitId: number, color: playercolor, speakerTitle: string, text: string, sceneDuration: number, voiceoverDuration: number): void
#
Parameters:Name | Type |
---|---|
portraitUnitId | number |
color | playercolor |
speakerTitle | string |
text | string |
sceneDuration | number |
voiceoverDuration | number |
Returns: void
Defined in: handles/camera.ts:195
#
adjustFieldstatic adjustField(whichField: camerafield, offset: number, duration: number): void
Changes one of the game camera's options whichField by offset over duration seconds.
#
Parameters:Name | Type | Description |
---|---|---|
whichField | camerafield | |
offset | number | |
duration | number |
Returns: void
Defined in: handles/camera.ts:104
#
endCinematicScenestatic endCinematicScene(): void
Returns: void
Defined in: handles/camera.ts:108
#
forceCinematicSubtitlesstatic forceCinematicSubtitles(flag: boolean): void
#
Parameters:Name | Type |
---|---|
flag | boolean |
Returns: void
Defined in: handles/camera.ts:112
#
getFieldstatic getField(field: camerafield): number
Return-value for the local players camera only.
#
Parameters:Name | Type |
---|---|
field | camerafield |
Returns: number
Defined in: handles/camera.ts:119
#
getMarginstatic getMargin(whichMargin: number): number
#
Parameters:Name | Type |
---|---|
whichMargin | number |
Returns: number
Defined in: handles/camera.ts:123
#
panstatic pan(x: number, y: number, zOffsetDest: undefined | number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
zOffsetDest | undefined | number |
Returns: void
Defined in: handles/camera.ts:127
#
panTimedstatic panTimed(x: number, y: number, duration: number, zOffsetDest: undefined | number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
duration | number |
zOffsetDest | undefined | number |
Returns: void
Defined in: handles/camera.ts:135
#
resetstatic reset(duration: number): void
#
Parameters:Name | Type |
---|---|
duration | number |
Returns: void
Defined in: handles/camera.ts:143
#
setBoundsstatic setBounds(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number): void
#
Parameters:Name | Type |
---|---|
x1 | number |
y1 | number |
x2 | number |
y2 | number |
x3 | number |
y3 | number |
x4 | number |
y4 | number |
Returns: void
Defined in: handles/camera.ts:147
#
setCameraOrientControllerstatic setCameraOrientController(whichUnit: unit, xOffset: number, yOffset: number): void
#
Parameters:Name | Type |
---|---|
whichUnit | unit |
xOffset | number |
yOffset | number |
Returns: void
Defined in: handles/camera.ts:151
#
setCineFilterBlendModestatic setCineFilterBlendMode(whichMode: blendmode): void
#
Parameters:Name | Type |
---|---|
whichMode | blendmode |
Returns: void
Defined in: handles/camera.ts:155
#
setCineFilterDurationstatic setCineFilterDuration(duration: number): void
#
Parameters:Name | Type |
---|---|
duration | number |
Returns: void
Defined in: handles/camera.ts:159
#
setCineFilterEndColorstatic setCineFilterEndColor(red: number, green: number, blue: number, alpha: number): void
#
Parameters:Name | Type |
---|---|
red | number |
green | number |
blue | number |
alpha | number |
Returns: void
Defined in: handles/camera.ts:163
#
setCineFilterEndUVstatic setCineFilterEndUV(minU: number, minV: number, maxU: number, maxV: number): void
#
Parameters:Name | Type |
---|---|
minU | number |
minV | number |
maxU | number |
maxV | number |
Returns: void
Defined in: handles/camera.ts:167
#
setCineFilterStartColorstatic setCineFilterStartColor(red: number, green: number, blue: number, alpha: number): void
#
Parameters:Name | Type |
---|---|
red | number |
green | number |
blue | number |
alpha | number |
Returns: void
Defined in: handles/camera.ts:171
#
setCineFilterStartUVstatic setCineFilterStartUV(minU: number, minV: number, maxU: number, maxV: number): void
#
Parameters:Name | Type |
---|---|
minU | number |
minV | number |
maxU | number |
maxV | number |
Returns: void
Defined in: handles/camera.ts:175
#
setCineFilterTexMapFlagsstatic setCineFilterTexMapFlags(whichFlags: texmapflags): void
#
Parameters:Name | Type |
---|---|
whichFlags | texmapflags |
Returns: void
Defined in: handles/camera.ts:179
#
setCineFilterTexturestatic setCineFilterTexture(fileName: string): void
#
Parameters:Name | Type |
---|---|
fileName | string |
Returns: void
Defined in: handles/camera.ts:183
#
setCinematicAudiostatic setCinematicAudio(cinematicAudio: boolean): void
#
Parameters:Name | Type |
---|---|
cinematicAudio | boolean |
Returns: void
Defined in: handles/camera.ts:187
#
setCinematicCamerastatic setCinematicCamera(cameraModelFile: string): void
#
Parameters:Name | Type |
---|---|
cameraModelFile | string |
Returns: void
Defined in: handles/camera.ts:191
#
setDepthOfFieldScalestatic setDepthOfFieldScale(scale: number): void
#
Parameters:Name | Type |
---|---|
scale | number |
Returns: void
Defined in: handles/camera.ts:199
#
setFieldstatic setField(whichField: camerafield, value: number, duration: number): void
#
Parameters:Name | Type |
---|---|
whichField | camerafield |
value | number |
duration | number |
Returns: void
Defined in: handles/camera.ts:203
#
setFocalDistancestatic setFocalDistance(distance: number): void
#
Parameters:Name | Type |
---|---|
distance | number |
Returns: void
Defined in: handles/camera.ts:207
#
setPosstatic setPos(x: number, y: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
Returns: void
Defined in: handles/camera.ts:211
#
setRotateModestatic setRotateMode(x: number, y: number, radiansToSweep: number, duration: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
radiansToSweep | number |
duration | number |
Returns: void
Defined in: handles/camera.ts:215
#
setSmoothingFactorstatic setSmoothingFactor(factor: number): void
#
Parameters:Name | Type |
---|---|
factor | number |
Returns: void
Defined in: handles/camera.ts:219
#
setSourceNoisestatic setSourceNoise(mag: number, velocity: number, vertOnly?: boolean): void
#
Parameters:Name | Type | Default value |
---|---|---|
mag | number | - |
velocity | number | - |
vertOnly | boolean | false |
Returns: void
Defined in: handles/camera.ts:223
#
setTargetControllerstatic setTargetController(whichUnit: unit, xOffset: number, yOffset: number, inheritOrientation: boolean): void
#
Parameters:Name | Type |
---|---|
whichUnit | unit |
xOffset | number |
yOffset | number |
inheritOrientation | boolean |
Returns: void
Defined in: handles/camera.ts:227
#
setTargetNoisestatic setTargetNoise(mag: number, velocity: number, vertOnly?: boolean): void
#
Parameters:Name | Type | Default value |
---|---|---|
mag | number | - |
velocity | number | - |
vertOnly | boolean | false |
Returns: void
Defined in: handles/camera.ts:231
#
stopstatic stop(): void
Returns: void
Defined in: handles/camera.ts:235