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:
! GSGame::IsMultiplayer().

GSMap::IsValidTile(tile).


Generated on Tue Oct 21 19:23:04 2014 for OpenTTD Game API by  doxygen 1.5.6