Changeset 5f868c0 in network-game for common/WorldMap.h


Ignore:
Timestamp:
May 22, 2013, 10:34:42 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
45b2750
Parents:
6e66ffd
Message:

Added partial server support for new messages for sending item info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/WorldMap.h

    r6e66ffd r5f868c0  
    3737      POSITION pos;
    3838
    39       Object(ObjectType type, int id, int x, int y);
    40       Object(ObjectType type, int id, POSITION pos);
     39      Object(int id, ObjectType type, int x, int y);
     40      Object(int id, ObjectType type, POSITION pos);
    4141
    4242      ~Object();
     43
     44      void serialize(char* buffer);
     45      void deserialize(char* buffer);
    4346   };
    4447
     
    5861   void setStructure(int x, int y, StructureType type);
    5962
     63   vector<Object> getObjects();
    6064   vector<Object> getObjects(int x, int y);
     65
    6166   void addObject(ObjectType type, int x, int y);
    6267   void updateObject(int id, WorldMap::ObjectType t, int x, int y);
     68   bool removeObject(int id);
    6369
    6470   static WorldMap* createDefaultMap();
Note: See TracChangeset for help on using the changeset viewer.