Ignore:
Timestamp:
Nov 22, 2012, 12:22:35 AM (8 years ago)
Author:
sam
Message:

build: rename Map to LevelMap so that we can use Map for the hashmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/map.cpp

    r1985 r2106  
    2626
    2727/*
    28  * Map implementation class
     28 * LevelMap implementation class
    2929 */
    3030
    31 class MapData
     31class LevelMapData
    3232{
    33     friend class Map;
     33    friend class LevelMap;
    3434
    3535    static int const MAX_TILESETS = 128;
     
    4545
    4646/*
    47  * Public Map class
     47 * Public LevelMap class
    4848 */
    4949
    50 Map::Map(char const *path)
    51   : data(new MapData())
     50LevelMap::LevelMap(char const *path)
     51  : data(new LevelMapData())
    5252{
    5353    data->ntilers = 0;
     
    5656
    5757    char tmp[BUFSIZ];
    58     int gids[MapData::MAX_TILESETS];
     58    int gids[LevelMapData::MAX_TILESETS];
    5959    uint32_t *tiles = NULL;
    6060    int level = 0, orientation = 0, ntiles = 0;
     
    152152}
    153153
    154 Map::~Map()
     154LevelMap::~LevelMap()
    155155{
    156156    for (int i = 0; i < data->ntilers; i++)
     
    161161}
    162162
    163 void Map::Render(int x, int y, int z)
     163void LevelMap::Render(int x, int y, int z)
    164164{
    165165    for (int i = 0; i < data->m_layers.Count(); i++)
     
    167167}
    168168
    169 int Map::GetWidth()
     169int LevelMap::GetWidth()
    170170{
    171171    return data->width * 32;
    172172}
    173173
    174 int Map::GetHeight()
     174int LevelMap::GetHeight()
    175175{
    176176    return data->height * 32;
Note: See TracChangeset for help on using the changeset viewer.