- Timestamp:
- Dec 23, 2013, 8:05:55 PM (11 years ago)
- Branches:
- master
- Children:
- 3e44a59
- Parents:
- 8ce793b
- Location:
- server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/makefile
r8ce793b rc9f6a1c 1 1 CC = g++ 2 LIB_FLAGS = -lssl -lmysqlclient -lcrypt -lrt 2 #LIB_FLAGS = -lssl -lmysqlclient -lcrypt -lrt 3 LIB_FLAGS = -lmysqlclient -lcrypt -lrt 3 4 FLAGS = $(LIB_FLAGS) 4 5 COMMON_PATH = ../common 5 DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o Game.o 6 DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o Game.o GameSummary.o 6 7 7 8 server : server.cpp $(DEPENDENCIES) … … 29 30 $(CC) -c -o $@ $? 30 31 32 GameSummary.o : $(COMMON_PATH)/GameSummary.cpp 33 $(CC) -c -o $@ $? 34 31 35 %.o : %.cpp 32 36 $(CC) -c -o $@ $? -
server/server.cpp
r8ce793b rc9f6a1c 36 36 #include "../common/Projectile.h" 37 37 #include "../common/Game.h" 38 #include "../common/GameSummary.h" 38 39 39 40 #include "DataAccess.h" … … 377 378 378 379 serverMsg.type = MSG_TYPE_FINISH_GAME; 380 381 // I should create an instance of the GameSummary object here and just serialize it into this message 379 382 memcpy(serverMsg.buffer+4, &winningTeam, 4); 380 383 memcpy(serverMsg.buffer+4, &scoreBlue, 4);
Note:
See TracChangeset
for help on using the changeset viewer.