Move to bottom of library in random order. (#3549)

* - Allow shuffling a subset of a zone
- When moving cards to the bottom of library, shuffle them after
- Process events in the correct order serverside

* Zach fixes

Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>

* Comments + additional guard
This commit is contained in:
Rob Blanckaert 2019-02-07 11:08:44 -08:00 committed by Zach H
parent 6e3fd30fcb
commit d932581f4a
10 changed files with 160 additions and 109 deletions

View file

@ -90,7 +90,7 @@ public:
const ServerInfo_User &_userInfo,
bool _spectator,
Server_AbstractUserInterface *_handler);
~Server_Player();
~Server_Player() override;
void prepareDestroy();
Server_AbstractUserInterface *getUserInterface() const
{
@ -99,10 +99,6 @@ public:
void setUserInterface(Server_AbstractUserInterface *_userInterface);
void disconnectClient();
void setPlayerId(int _id)
{
playerId = _id;
}
bool getReadyStart() const
{
return readyStart;
@ -127,10 +123,7 @@ public:
{
conceded = _conceded;
}
DeckList *getDeck() const
{
return deck;
}
Server_Game *getGame() const
{
return game;