Changeset 62ee2ce in network-game for common/WorldMap.h


Ignore:
Timestamp:
Feb 5, 2013, 7:02:32 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
384b7e0, 60017fc
Parents:
60b77d2
Message:

The client shows the map and converts between screen and map coordinates

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/WorldMap.h

    r60b77d2 r62ee2ce  
    1 #ifndef _MAP_H
    2 #define _MAP_H
     1#ifndef _WORLDMAP_H
     2#define _WORLDMAP_H
    33
    44#include <vector>
     
    66using namespace std;
    77
    8 class Map {
     8class WorldMap {
    99public:
    1010   enum TerrainType {
    1111      TERRAIN_NONE,
    1212      TERRAIN_GRASS,
    13       TERRAIN_OCEAN
     13      TERRAIN_OCEAN,
     14      TERRAIN_ROCK
    1415   };
    1516
     
    1718   vector<vector<TerrainType>*>* vctMap;
    1819
    19    Map(int width, int height);
     20   WorldMap(int width, int height);
    2021
    21    ~Map();
     22   ~WorldMap();
    2223
     24   TerrainType getElement(int x, int y);
    2325   void setElement(int x, int y, TerrainType type);
    2426
    25    static Map* createDefaultMap();
     27   static WorldMap* createDefaultMap();
    2628};
    2729
Note: See TracChangeset for help on using the changeset viewer.