List of all members.
Detailed Description
- Todo:
- Properly document me.
- Note:
- The Camera object is intended for use solely within the context of a Map object.
Constructor & Destructor Documentation
| Camera::Camera |
( |
int |
viewportW, |
|
|
int |
viewportH, |
|
|
int |
worldspaceW, |
|
|
int |
worldspaceH, |
|
|
int |
tileW, |
|
|
int |
tileH, |
|
|
int |
tileMaxH | |
|
) |
| | |
| virtual Camera::~Camera |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| void Camera::attach |
( |
Entity * |
entity |
) |
|
| int Camera::getCornerTileX |
( |
|
) |
const |
Returns the X-Coordiante of the tile at the upper left corner of the viewport.
| int Camera::getCornerTileY |
( |
|
) |
const [virtual] |
Returns the Y-Coordiante of the tile at the upper left corner of the viewport.
| int Camera::getNumXTileLoops |
( |
|
) |
const |
Returns the number of tiles needed to be drawn along the X-Coordinate to fill a viewport.
| int Camera::getNumYTileLoops |
( |
|
) |
const [virtual] |
Returns the number of tiles needed to be drawn along the Y-Coordinate to fill a viewport.
Reimplemented in IsoCamera.
| int Camera::getScrollOffsetX |
( |
|
) |
const |
Returns the scroller X-Offset.
| int Camera::getScrollOffsetY |
( |
|
) |
const |
Returns the scroller Y-Offset.
| int Camera::getViewportHeight |
( |
|
) |
const |
| int Camera::getViewportWidth |
( |
|
) |
const |
| int Camera::getViewportX |
( |
|
) |
const |
| int Camera::getViewportY |
( |
|
) |
const |
| void Camera::move |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void Camera::set |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
Sets Camera position to fine coordinate X, Y.
Member Data Documentation
Number of tiles required to fill t Viewport.
Scroller offsets used for tile placement, visual aids and mousemap calculations.
Maximum values that the Viewport's X/Y Coordinates can have.
Tile coordinates for the tile at the upper left corner of the Viewport.
Width/Height of the Viewport.
X/Y Coordinate of the Viewport within Worldspace.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Core/Map/Components/Camera.h
- C:/Development/LoM/client/src/Core/Map/Components/Camera.cpp