Changeset 6e66ffd in network-game for server


Ignore:
Timestamp:
May 21, 2013, 10:00:54 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
5f868c0
Parents:
cc1c6c1
Message:

Add functions to the WorldMap class to allow the server to notify clients of object creation and movement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    rcc1c6c1 r6e66ffd  
    9595
    9696   WorldMap* gameMap = WorldMap::loadMapFromFile("../data/map.txt");
    97  
     97
     98   // add some items to the map. They will be sent out
     99   // to players when they login
     100   // m->addObject(x*25+12, y*25+12, OBJECT_BLUE_FLAG);
     101   // m->addObject(x*25+12, y*25+12, OBJECT_RED_FLAG);
     102
    98103   sock = socket(AF_INET, SOCK_DGRAM, 0);
    99104   if (sock < 0) error("Opening socket");
Note: See TracChangeset for help on using the changeset viewer.