Players are being added in the client

The client sends a debug player to the server, with a constant movement to
show that the new client _is_ connecting. The next thing to add is the
sync system, so that the clients know what the server looks like when they
first join.
This commit is contained in:
Kayne Ruse
2013-06-24 16:15:48 +10:00
parent 2235f307e7
commit 3f2fcdf9e1
6 changed files with 101 additions and 49 deletions
+7 -7
View File
@@ -169,31 +169,31 @@ int Lobby::HandlePacket(Packet::Packet p) {
case Packet::Type::PONG:
//
break;
// case PacketType::BROADCAST_REQUEST:
// case Packet::Type::BROADCAST_REQUEST:
// //
// break;
case Packet::Type::BROADCAST_RESPONSE:
PushServer(p.broadcastResponse);
break;
// case PacketType::JOIN_REQUEST:
// case Packet::Type::JOIN_REQUEST:
// //
// break;
case Packet::Type::JOIN_RESPONSE:
BeginGame(p.joinResponse);
break;
// case PacketType::DISCONNECT:
// case Packet::Type::DISCONNECT:
// //
// break;
// case PacketType::SYNCHRONIZE:
// case Packet::Type::SYNCHRONIZE:
// //
// break;
// case PacketType::PLAYER_NEW:
// case Packet::Type::PLAYER_NEW:
// //
// break;
// case PacketType::PLAYER_DELETE:
// case Packet::Type::PLAYER_DELETE:
// //
// break;
// case PacketType::PLAYER_MOVE:
// case Packet::Type::PLAYER_UPDATE:
// //
// break;
default: