public class Camera
extends Object
Modifier and Type | Method and Description |
---|---|
void |
cameraBackward(int keyState)
Indicates that camera backward key has gone up or down.
|
void |
cameraDown(int keyState)
Indicates that camera down key has gone up or down.
|
void |
cameraForward(int keyState)
Indicates that camera forward key has gone up or down.
|
void |
cameraLeft(int keyState)
Indicates that camera left key has gone up or down.
|
void |
cameraLimit(int state)
Sets whether camera limiting is on.
|
void |
cameraLocalYawLeft(int keyState)
Indicates that camera 'Local Yaw left' key has gone up or down.
|
void |
cameraLocalYawRight(int keyState)
Indicates that camera 'Local Yaw right1 key has gone up or down.
|
void |
cameraNice()
Puts the camera in a reasonable orientation.
|
void |
cameraPitchBackward(int keyState)
Indicates that camera pitch backward key has gone up or down.
|
void |
cameraPitchForward(int keyState)
Indicates that camera pitch forward key has gone up or down.
|
void |
cameraRight(int keyState)
Indicates that camera right key has gone up or down.
|
void |
cameraRotate(int state)
Sets whether camera limiting is on.
|
void |
cameraUp(int keyState)
Indicates that camera up key has gone up or down.
|
void |
cameraWorldBackward(int keyState)
Indicates that camera world backward key has gone up or down.
|
void |
cameraWorldBackwardLeft(int keyState)
Indicates that camera world backward 8, left key has gone up or down.
|
void |
cameraWorldBackwardRight(int keyState)
Indicates that camera world backward 8, right key has gone up or down.
|
void |
cameraWorldForward(int keyState)
Indicates that camera world forward key has gone up or down.
|
void |
cameraWorldForwardLeft(int keyState)
Indicates that camera world forward 8, left key has gone up or down.
|
void |
cameraWorldForwardRight(int keyState)
Indicates that camera world forward 8, right key has gone up or down.
|
void |
cameraYawLeft(int keyState)
Indicates that camera yaw left key has gone up or down.
|
void |
cameraYawRight(int keyState)
Indicates that camera yaw right key has gone up or down.
|
void |
loadCamera(string filename)
Load camera from file.
|
void |
lookAt(float x,
float z)
Looks at given (x,z) location on terrain.
|
void |
lookAtArmy(int playerID,
string armyName)
Looks at given KB army.
|
void |
saveCamera(string filename)
Save camera to file.
|
void |
uiLookAtProto()
Moves the camera to see the first instance of proto unit X owned by the current player.
|
void |
uiLookAtSelection()
Moves the camera to see the first selected unit.
|
void |
uiLookAtUnit()
Moves the camera to see the specified Unit.
|
void |
uiLookAtUnitByName(string scenarioName)
Moves the camera to see the specified Unit.
|
void |
uiResetWheelRotate()
Reset rotation.
|
void |
uiWheelRotate(int x)
Rotate with wheel, i.e.
|
void |
uiWheelZoom(int x)
Zoom with wheel -- i.e.
|
void |
uiWheelZoomFine(int x)
Zoom fine with wheel -- i.e.
|
void |
uiZoomToMinimapEvent()
Zooms to the most recent minimap event.
|
void |
uiZoomToProto(string proto)
Zooms to the first instance of proto unit X owned by the current player.
|
public void lookAt(float x, float z)
public void lookAtArmy(int playerID, string armyName)
public void uiZoomToProto(string proto)
public void uiLookAtSelection()
public void uiLookAtUnit()
public void uiLookAtUnitByName(string scenarioName)
public void uiLookAtProto()
public void cameraLimit(int state)
public void cameraRotate(int state)
public void cameraNice()
public void cameraForward(int keyState)
public void cameraWorldForward(int keyState)
public void cameraWorldForwardLeft(int keyState)
public void cameraWorldForwardRight(int keyState)
public void cameraBackward(int keyState)
public void cameraWorldBackward(int keyState)
public void cameraWorldBackwardLeft(int keyState)
public void cameraWorldBackwardRight(int keyState)
public void cameraRight(int keyState)
public void cameraLeft(int keyState)
public void cameraUp(int keyState)
public void cameraDown(int keyState)
public void cameraPitchForward(int keyState)
public void cameraPitchBackward(int keyState)
public void cameraYawRight(int keyState)
public void cameraYawLeft(int keyState)
public void cameraLocalYawRight(int keyState)
public void cameraLocalYawLeft(int keyState)
public void saveCamera(string filename)
public void loadCamera(string filename)
public void uiWheelRotate(int x)
public void uiZoomToMinimapEvent()
public void uiWheelZoom(int x)
public void uiWheelZoomFine(int x)
public void uiResetWheelRotate()