GSViewport Class Reference

Class that manipulates the user's viewport. More...


Static Public Member Functions

static void ScrollTo (TileIndex tile)
 Scroll the viewport to the given tile, where the tile will be in the center of the screen.


Detailed Description

Class that manipulates the user's viewport.

Member Function Documentation

static void GSViewport::ScrollTo ( TileIndex  tile  )  [static]

Scroll the viewport to the given tile, where the tile will be in the center of the screen.

Parameters:
tile The tile to put in the center of the screen.
Precondition:
!GSGameIsMultiplayer().

GSMap::IsValidTile(tile).


Generated on Sun Mar 31 21:37:41 2013 for OpenTTD Game API by  doxygen 1.5.6