Changeset f419b09 in network-game


Ignore:
Timestamp:
Sep 22, 2013, 9:03:47 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
c044a36
Parents:
753fa8a
Message:

Added a Game class and new messages types for creating, joining, and leaving games

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • common/MessageContainer.h

    r753fa8a rf419b09  
    3131#define MSG_TYPE_PROJECTILE        15
    3232#define MSG_TYPE_REMOVE_PROJECTILE 16
     33#define MSG_TYPE_CREATE_GAME       17
     34#define MSG_TYPE_JOIN_GAME         18
     35#define MSG_TYPE_LEAVE_GAME        19
    3336
    3437typedef struct
  • server/makefile

    r753fa8a rf419b09  
    33FLAGS = $(LIB_FLAGS)
    44COMMON_PATH = ../common
    5 DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o
     5DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o DataAccess.o Projectile.o Game.o
    66
    77server : server.cpp $(DEPENDENCIES)
     
    2626        $(CC) -c -o $@ $?
    2727
     28Game.o : $(COMMON_PATH)/Game.cpp
     29        $(CC) -c -o $@ $?
     30
    2831%.o : %.cpp
    2932        $(CC) -c -o $@ $?
Note: See TracChangeset for help on using the changeset viewer.