Changeset 8aed9c0 in network-game


Ignore:
Timestamp:
Dec 28, 2013, 2:21:46 PM (11 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
bcfd99a
Parents:
360c0f1
Message:

Client compiles under linux

Location:
client
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client/.gitignore

    r360c0f1 r8aed9c0  
    88allegro.log
    99client.log
     10*.o
  • client/Client/main.cpp

    r360c0f1 r8aed9c0  
    2323#include <map>
    2424#include <vector>
     25#include <stdexcept>
    2526
    2627#include <allegro5/allegro.h>
     
    880881               cout << "Received a JOIN_GAME_SUCCESS message" << endl;
    881882
    882                string gameName(msg.buffer);         
    883                game = new Game(gameName, "../../data/map.txt");
     883               string gameName(msg.buffer);
     884
     885               #if defined WINDOWS
     886                  game = new Game(gameName, "../../data/map.txt");
     887               #elif defined LINUX
     888                  game = new Game(gameName, "../data/map.txt");
     889               #endif
     890
    884891               cout << "Game name: " << gameName << endl;
    885892
  • client/makefile

    r360c0f1 r8aed9c0  
    33FLAGS = $(LIB_FLAGS)
    44COMMON_PATH = ../common
    5 DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o Projectile.o Game.o GameRender.o chat.o GuiComponent.o Window.o Textbox.o Button.o RadioButtonList.o TextLabel.o
     5DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o Projectile.o Game.o GameRender.o GameSummary.o chat.o GuiComponent.o Window.o Textbox.o Button.o RadioButtonList.o TextLabel.o
    66
    77gameClient : Client/main.cpp $(DEPENDENCIES)
     
    2929        $(CC) -c -o $@ $? $(FLAGS)
    3030
     31GameSummary.o : $(COMMON_PATH)/GameSummary.cpp
     32        $(CC) -c -o $@ $? $(FLAGS)
     33
    3134%.o : Client/%.cpp
    3235        $(CC) -c -o $@ $? $(FLAGS)
Note: See TracChangeset for help on using the changeset viewer.