Getting one
client:getCameraFocusEntity()
Methods
| Method | Returns | Description |
|---|
getCameraFocus() | LocalPoint | The centre of the tile the camera follows, in the local units of the world view holding the tile (a boat's, for a tile on it): its `LocalPo… |
|---|
getWorldView() | WorldView | The top level, whichever world view holds the tile. |
|---|
equals(any) | boolean | Whether other equals this CameraFocusableEntity, as == answers it (false for a value of another class). |
|---|
Method details
getCameraFocus: (CameraFocusableEntity) -> LocalPoint
The centre of the tile the camera follows, in the local units of the world view holding the tile (a boat's, for a tile on it): its LocalPoint names the top level (0) whichever view that is. Read when asked, as the client sets its one coordinate entity at each camera update, so a kept object follows the camera's tile; once the camera follows something else, the last tile read.
getWorldView: (CameraFocusableEntity) -> WorldView
The top level, whichever world view holds the tile.
equals: (CameraFocusableEntity, any) -> boolean
Whether other equals this CameraFocusableEntity, as == answers it (false for a value of another class).