Changeset a1a3bd5 in network-game for common/WorldMap.h


Ignore:
Timestamp:
Apr 23, 2013, 1:31:54 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
227baaa
Parents:
054b50b
Message:

Made client changes for smooth player movement, changed the player move method to check the map for obstacles and return a bool indicating success or failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/WorldMap.h

    r054b50b ra1a3bd5  
    1717   };
    1818
     19   enum ObjectType {
     20      OBJECT_NONE,
     21      OBJECT_RED_FLAG,
     22      OBJECT_BLUE_FLAG
     23   };
     24
    1925   int width, height;
    2026   vector<vector<TerrainType>*>* vctMap;
     27   vector<vector<ObjectType>*>* vctObjects;
    2128
    2229   WorldMap(int width, int height);
     
    2734   void setElement(int x, int y, TerrainType type);
    2835
     36   ObjectType getObject(int x, int y);
     37   void setObject(int x, int y, ObjectType type);
     38
    2939   static WorldMap* createDefaultMap();
    3040   static WorldMap* loadMapFromFile(string filename);
Note: See TracChangeset for help on using the changeset viewer.