Added the GRAPHICS flag, to simplify the gameplay structures

This commit is contained in:
Kayne Ruse
2014-05-27 23:25:07 +10:00
parent 5893342ad8
commit 6b38501c27
8 changed files with 42 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#config
INCLUDES+=. scenes ../common/gameplay ../common/graphics ../common/map ../common/network ../common/ui ../common/utilities
LIBS+=libclient.a ../libcommon.a -lSDL_net -lwsock32 -liphlpapi -lmingw32 -lSDLmain -lSDL -llua
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES)) -DGRAPHICS
#source
CXXSRC=$(wildcard *.cpp)
+3
View File
@@ -42,6 +42,9 @@
#include "config_utility.hpp"
#include "frame_rate.hpp"
#include "character_data.hpp"
#include "combat_data.hpp"
//client
#include "base_scene.hpp"
+4
View File
@@ -210,6 +210,10 @@ void LobbyMenu::KeyUp(SDL_KeyboardEvent const& key) {
//
}
//-------------------------
//Network handlers
//-------------------------
void LobbyMenu::HandlePacket(SerialPacket packet) {
switch(packet.meta.type) {
case SerialPacket::Type::BROADCAST_RESPONSE: {
+1
View File
@@ -65,6 +65,7 @@ protected:
void KeyDown(SDL_KeyboardEvent const&);
void KeyUp(SDL_KeyboardEvent const&);
//Network handlers
void HandlePacket(SerialPacket);
//shared parameters
+1 -1
View File
@@ -1,7 +1,7 @@
#config
INCLUDES+=. .. ../../common/gameplay ../../common/graphics ../../common/map ../../common/network ../../common/ui ../../common/utilities
LIBS+=libclient.a ../libcommon.a -lSDL_net -lwsock32 -liphlpapi -lmingw32 -lSDLmain -lSDL -llua
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES)) -DGRAPHICS
#source
CXXSRC=$(wildcard *.cpp)