Table of Contents | ||
|
||
MoveWindow | ||
Purpose Moves the view window in a given direction, if possible |
||
Protoype bool CTileMngr::MoveWindow (int i_direction) |
||
Parameters
|
||
Description This function moves the map viewport. When a map is larger than the screen (or its clip window) the part that is visible represents the map viewport. In order to scroll around the map, you must change the position of the map viewport. You can move the viewport UP, DOWN, LEFT and RIGHT. If the viewport hits the edge of the map and cannot move in the direction indicated, it returns FALSE, otherwise it returns TRUE. |
||
Use CTileMngr tile_mngr; if (!tile_mngr.MoveWindow(LEFT)) // we've hit the left map edge |
||
|
||
|