public interface ObserverActionInterface
Modifier and Type | Method | Description |
---|---|---|
ObserverActionInterface |
cameraFollowPlayer(int playerId) |
Makes the observer camera follow the observed player's perspective.
|
ObserverActionInterface |
cameraMove(PointI point,
float distance) |
Moves the observer camera to a target location.
|
boolean |
sendActions() |
This function sends out all batched commands.
|
ObserverActionInterface cameraMove(PointI point, float distance)
point
- The 2D world position to target.distance
- Distance between camera and terrain. Larger value zooms out camera. Defaults to standard camera
distance if set to 0.ObserverActionInterface cameraFollowPlayer(int playerId)
playerId
- Player to follow.boolean sendActions()
Copyright © 2017–2018 Ocraft Project. All rights reserved.