GL - uppdate server

This commit is contained in:
lindaandersson 2014-01-30 14:17:50 +01:00
parent 2a69af5c9f
commit 05e24d0514
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <Protocols.h>
#include "NetworkClient.h"
#include "Camera.h"
#include <GameServerAPI.h>
using namespace DanBias::Client;
@ -143,6 +144,7 @@ bool GameState::InitCamera(Oyster::Math::Float3 startPos)
GameClientState::ClientState GameState::Update(float deltaTime, InputClass* KeyInput)
{
DanBias::GameServerAPI::ServerUpdate();
switch (privData->state)
{
case gameStateState_loading:

View File

@ -4,6 +4,7 @@
#include "C_obj/C_Player.h"
#include "C_obj/C_StaticObj.h"
#include "C_obj/C_DynamicObj.h"
#include <GameServerAPI.h>
using namespace DanBias::Client;
@ -86,9 +87,14 @@ GameClientState::ClientState LobbyState::Update(float deltaTime, InputClass* Key
// update animation
// send data to server
// check data from server
DanBias::GameServerAPI::ServerUpdate();
if( KeyInput->IsKeyPressed(DIK_G))
return ClientState_Game;
{
DanBias::GameServerAPI::GameStart();
return ClientState_Game;
}
return ClientState_Same;
}
bool LobbyState::Render()