Changeset c51da03 in network-game


Ignore:
Timestamp:
Jan 26, 2014, 9:46:43 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
c991530
Parents:
5c7f28d (diff), 1e250bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of github.com:weretaco/network-game

Location:
client
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • client/Client/GameRender.cpp

    r5c7f28d rc51da03  
    11#include "GameRender.h"
     2
     3#include <cmath>
    24
    35#include <allegro5/allegro_primitives.h>
     
    6264               case OBJECT_RED_FLAG:
    6365                  al_draw_filled_rectangle(it->pos.x-8+mapPos.x, it->pos.y-8+mapPos.y, it->pos.x+8+mapPos.x, it->pos.y+8+mapPos.y, al_map_rgb(255, 0, 0));
     66                  break;
     67               case OBJECT_NONE:
    6468                  break;
    6569            }
  • client/Client/RadioButtonList.cpp

    r5c7f28d rc51da03  
    2323   al_clear_to_color(al_map_rgb(0, 0, 0));
    2424
    25    int fontHeight = al_get_font_line_height(font);
     25   //int fontHeight = al_get_font_line_height(font);
    2626
    2727   al_draw_text(font, al_map_rgb(0, 255, 0), 0, 0, ALLEGRO_ALIGN_LEFT, this->strLabel.c_str());
     
    4444   if (e.type == ALLEGRO_EVENT_MOUSE_BUTTON_UP) {
    4545      if (e.mouse.button == 1) {
    46          for (int i=0; i<this->vctRadioButtons.size(); i++) {
     46         for (unsigned int i=0; i<this->vctRadioButtons.size(); i++) {
    4747            centerY = y+26+i*20;
    4848
  • client/Client/RadioButtonList.h

    r5c7f28d rc51da03  
    1515   string strLabel;
    1616   vector<string> vctRadioButtons;
    17    int selectedButton;
     17   unsigned int selectedButton;
    1818
    1919public:
  • client/Client/main.cpp

    r5c7f28d rc51da03  
    1515#include <cstdio>
    1616#include <cstdlib>
    17 #include <cmath>
     17//#include <cmath>
    1818#include <sys/types.h>
    1919#include <string>
     
    133133   ALLEGRO_EVENT_QUEUE *event_queue = NULL;
    134134   ALLEGRO_TIMER *timer = NULL;
    135    bool key[4] = { false, false, false, false };
    136135   map<unsigned int, Player*> mapPlayers;
    137136   unsigned int curPlayerId = -1;
     
    697696               cout << "Got a logout message" << endl;
    698697
    699                int playerId;
     698               unsigned int playerId;
    700699
    701700               // Check if it's about you or another player
  • client/makefile

    r5c7f28d rc51da03  
    11CC = g++
    22LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
    3 FLAGS = $(LIB_FLAGS)
     3FLAGS = -Wall
    44COMMON_PATH = ../common
    55DEPENDENCIES = 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)
    8         $(CC) -o $@ $+ $(FLAGS)
     8        $(CC) -o $@ $+ $(FLAGS) $(LIB_FLAGS)
     9
     10%.o : Client/%.cpp
     11        $(CC) -c -o $@ $? $(FLAGS)
    912
    1013Common.o : $(COMMON_PATH)/Common.cpp
     
    3235        $(CC) -c -o $@ $? $(FLAGS)
    3336
    34 %.o : Client/%.cpp
    35         $(CC) -c -o $@ $? $(FLAGS)
    36 
    3737clean:
    3838        rm *.o
Note: See TracChangeset for help on using the changeset viewer.