Table of Contents

 
LoadMap
 

Purpose

loads a map from a data file

 

Protoype

void CTileMngr::LoadMap (string str_filename)
 

Parameters

filename the name or path of the map file
 

Description

This function opens a map text file and loads it into the engine, removing any previous map in use.

NOTE: The extension of the map file is not relevant so long as the map is stored as an ASCII text file.

 

Use

CTileMngr tile_mngr;
tile_mngr.LoadMap("level1.map");
 

Prev: IsPlaying