Delay after showing cards when all in condition is true. Added option TCP_NODELAY. Round is now shown before dealing cards.
This commit is contained in:
@@ -70,6 +70,10 @@ public:
|
||||
|
||||
ServerCallback &GetCallback();
|
||||
|
||||
void SendError(SOCKET s, int errorCode);
|
||||
void SendToAllPlayers(boost::shared_ptr<NetPacket> packet);
|
||||
void SendToAllButOnePlayers(boost::shared_ptr<NetPacket> packet, SOCKET except);
|
||||
|
||||
protected:
|
||||
|
||||
struct Notification
|
||||
@@ -114,10 +118,6 @@ protected:
|
||||
|
||||
int GetNextPlayerNumber() const;
|
||||
|
||||
void SendError(SOCKET s, int errorCode);
|
||||
void SendToAllPlayers(boost::shared_ptr<NetPacket> packet);
|
||||
void SendToAllButOnePlayers(boost::shared_ptr<NetPacket> packet, SOCKET except);
|
||||
|
||||
ServerRecvState &GetState();
|
||||
void SetState(ServerRecvState &newState);
|
||||
|
||||
@@ -169,6 +169,7 @@ friend class ServerRecvStateStartGame;
|
||||
friend class ServerRecvStateStartHand;
|
||||
friend class ServerRecvStateStartRound;
|
||||
friend class ServerRecvStateWaitPlayerAction;
|
||||
friend class ServerRecvStateShowCardsDelay;
|
||||
friend class ServerRecvStateDealCardsDelay;
|
||||
friend class ServerRecvStateNextHand;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user