Table of Contents

 
MoveMap
 

Purpose

Moves the map relative to its current location

 

Protoype

void CTileMngr::MoveMap (int i_dx, int i_dy)
 

Parameters

dx the change in x
dy
the change in y
 

Description

This function moves the entire map relative to its current location. Therefore if you pass in values of 10 and -25 for a map positioned at (155, 340), the new map location would be at (165, 315).

 

Use

CTileMngr tile_mngr;
tile_mngr.MoveMap(15, 50);
 

Prev: MapOver