summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-27Fixed minor regression in server.Vegard Storheil Eriksen1-3/+3
2010-11-27Split target type and target offset in Action.Vegard Storheil Eriksen3-12/+21
2010-11-27Removed obsolete files.Vegard Storheil Eriksen7-628/+0
2010-11-27Changed format of RoundState again.Vegard Storheil Eriksen6-46/+58
2010-11-27Added List class to avoid reinventing features in each case.Vegard Storheil Eriksen5-40/+41
2010-11-25Changed contents of Message::RoundState. Made relevant changes to client.Vegard Storheil Eriksen2-6/+23
2010-11-25Added dora-field to RoundState.Vegard Storheil Eriksen2-0/+4
2010-11-25Replace GameVariant/RuleSet::Standard with Game::Player.Vegard Storheil Eriksen2-85/+224
2010-11-25Added Game::Player.Vegard Storheil Eriksen2-0/+208
2010-11-25Client::game_start() now take list of nicks, not list of clients. Minor cleanup.Vegard Storheil Eriksen2-17/+7
2010-11-25Add invisible-flag to Tile.Vegard Storheil Eriksen1-0/+2
2010-11-25Add get_set() to Tile.Vegard Storheil Eriksen2-1/+46
2010-11-25Add Action() taking type and target and Actions::operator bool().Vegard Storheil Eriksen2-0/+18
2010-11-25Added Tiles::sort().Vegard Storheil Eriksen2-6/+30
2010-11-25Rename Player to Client, to better reflect what it represents.Vegard Storheil Eriksen8-48/+47
A Player should be specific to a game, while a Client may participate in several.
2010-11-25Changed parts of the Wall API to make it reusable. Simplified the building.Vegard Storheil Eriksen2-56/+26
2010-11-25Added get_num(), operator==() and operator++() to Tile.Vegard Storheil Eriksen2-0/+26
2010-11-25Action::operator==() should take a reference.Vegard Storheil Eriksen2-2/+2
2010-11-25Remove Action::player and turn Action::target into an int.Vegard Storheil Eriksen2-78/+74
2010-11-25Check for valid action.Vegard Storheil Eriksen5-13/+36
2010-11-24Moved player-callbacks from class members to bound variables.Vegard Storheil Eriksen2-26/+18
2010-11-24Clear recv_callback even when no error_callback is specified.Vegard Storheil Eriksen1-0/+2
2010-11-24Added error handling around connections.Vegard Storheil Eriksen4-12/+43
2010-11-24Fixed play continues to the right on pon/kan.Ole Daniel Evensen1-12/+4
2010-11-24Added server-handling for pon/kan-actions.Ole Daniel Evensen1-1/+53
2010-11-24Removed some commented code.Ole Daniel Evensen1-8/+0
2010-11-24Wrote server-check for pon/kan possible actions.Ole Daniel Evensen3-4/+50
2010-11-24Player discards after chi.Ole Daniel Evensen1-0/+10
2010-11-23Changed the target in action from 2 ints into a vector<int>. Making it ↵Atle Hellvik Havsø2-26/+23
easier to scale when we start with kan and riichi. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-23Minor change in RuleSet::StandardAtle Hellvik Havsø1-5/+3
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-23Added a second target to Action.Atle Hellvik Havsø2-16/+17
2010-11-22Moved lots of code in Game out into a separate class.Atle Hellvik Havsø5-405/+499
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Fixed typo in chi-testsAtle Hellvik Havsø1-30/+16
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Made server respond to Action::Chi messages.Atle Hellvik Havsø1-4/+51
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Implemented pass on the server.Atle Hellvik Havsø1-10/+37
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22The "Chi" mechanism now works.Atle Hellvik Havsø1-19/+45
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Added debug flag in scons-script for server. Wrote code to check if player ↵Ole Daniel Evensen2-6/+142
can chi.
2010-11-22Minor fix to SetAtle Hellvik Havsø1-1/+1
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Added a Set class.Atle Hellvik Havsø3-0/+28
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Made the server send a empty RoundEnd message when the wall is empty ↵Atle Hellvik Havsø3-2/+51
(Contains only 14 tiles). Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Added a empty RoundEnd Message.Atle Hellvik Havsø3-0/+14
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Rewrote parts of round_update and handle_actionAtle Hellvik Havsø1-48/+79
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Server sends the players id in the game together with the GameStart message.Atle Hellvik Havsø4-28/+28
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Fixed backslash in include.Atle Hellvik Havsø1-1/+1
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Some changes to game.Atle Hellvik Havsø1-17/+41
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Minor change with State.Atle Hellvik Havsø7-14/+15
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Should now be possible to play a round where everyone discards.Atle Hellvik Havsø1-13/+18
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Server responds to discard messages.Atle Hellvik Havsø2-36/+108
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Made the Player class have a ID (That gets set during a game) which they add ↵Atle Hellvik Havsø3-0/+8
to the Action-message. So we can keep track of which player did what action. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Wait for action from player 0 (East) at the start of a round.Atle Hellvik Havsø2-4/+40
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>