Changeset 9ba9b96 in network-game for common/WorldMap.h


Ignore:
Timestamp:
Jan 20, 2014, 4:59:34 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
949cf70
Parents:
d998572
Message:

All ids should now be unsigned ints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/WorldMap.h

    rd998572 r9ba9b96  
    3232   class Object {
    3333   public:
    34       int id;
     34      unsigned int id;
    3535      ObjectType type;
    3636      POSITION pos;
    3737
    38       Object(int id, ObjectType type, int x, int y);
    39       Object(int id, ObjectType type, POSITION pos);
     38      Object(unsigned int id, ObjectType type, int x, int y);
     39      Object(unsigned int id, ObjectType type, POSITION pos);
    4040
    4141      ~Object();
     
    6565
    6666   void addObject(ObjectType type, int x, int y);
    67    void updateObject(int id, WorldMap::ObjectType t, int x, int y);
    68    bool removeObject(int id);
     67   void updateObject(unsigned int id, WorldMap::ObjectType t, int x, int y);
     68   bool removeObject(unsigned int id);
    6969
    7070   static WorldMap* createDefaultMap();
Note: See TracChangeset for help on using the changeset viewer.