summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-11Add Player::declare_ron() and Player::declare_tsumo().Vegard Storheil Eriksen3-3/+16
2010-12-11Add Score-class.Vegard Storheil Eriksen2-0/+85
2010-12-11Add Hand::get_breakdowns() and extend eat_*() to support it.Vegard Storheil Eriksen2-1/+95
2010-12-11Add constructors to List.Vegard Storheil Eriksen1-0/+7
2010-12-10Implemented "atama hane"-rule on multiple ron.Vegard Storheil Eriksen1-1/+9
2010-12-10Handle concealed and extended kan.Vegard Storheil Eriksen3-1/+60
2010-12-09Retry waiting for a Ready message if wrong message was received.Vegard Storheil Eriksen1-0/+2
2010-12-09Set RoundEnd::game_end.Vegard Storheil Eriksen1-1/+5
2010-12-07Added Message::GameResume.Vegard Storheil Eriksen1-0/+15
2010-12-07Removed GameStart::player_id.Vegard Storheil Eriksen2-4/+0
2010-12-07Completed framework for reconnection. Still missing client-fallback and ↵Vegard Storheil Eriksen4-47/+84
resync upon reconnect.
2010-12-06Changed format of Message::Login and Message::LoginResponse to accomodate ↵Vegard Storheil Eriksen2-6/+22
reconnection.
2010-12-06Added GameEnd message and made the GameEndDialog use it.Atle Hellvik Havsø2-0/+22
2010-12-06Added fields to the RoundEnd message.Atle Hellvik Havsø1-1/+37
2010-12-06some preliminary code and structure for dis-connection and re-connection.Ole Daniel Evensen3-6/+45
2010-12-06cleaned out the connection-dialogs. Comented out the wall-hack. Fixed ↵Ole Daniel Evensen1-1/+1
button-action in OkCancelDialog. Created a new connection/disconnetion dialog.
2010-12-05Use Set to store open sets on server. Send actions to extend open kans.Vegard Storheil Eriksen3-10/+32
2010-12-05Added a Set-class.Vegard Storheil Eriksen1-0/+24
2010-12-05Test for concealed and extended kans.Vegard Storheil Eriksen2-5/+42
2010-12-05Renamed target types.Vegard Storheil Eriksen2-9/+12
2010-12-04Added riichi handler.Vegard Storheil Eriksen3-19/+33
2010-12-04Fill all fields in GameState and PlayerState.Vegard Storheil Eriksen3-15/+29
2010-12-04Added unary CyclicInt::operator-().Vegard Storheil Eriksen1-0/+4
2010-12-03Use PlayerState and GameState in Message::RoundState.Vegard Storheil Eriksen6-69/+39
2010-12-03Add PlayerState and GameState-structs to bundle together related information.Vegard Storheil Eriksen1-0/+64
2010-12-03Don't add 1p-player to 4p-queue.Vegard Storheil Eriksen1-1/+1
2010-12-03Fixed error_code in Connection::handle_read().Vegard Storheil Eriksen2-4/+4
2010-12-02Added fields to Message::RoundState - player.riichi, player.score, ↵Vegard Storheil Eriksen1-0/+21
player.wind, round_wind, round_number, riichibou, honba.
2010-12-02Changed Hand::eat_-functions to return a bool, so a failure can be ↵Vegard Storheil Eriksen2-52/+54
distinguished from a depleted list of tiles.
2010-12-02Sort hands before testing agari/tenpai.Vegard Storheil Eriksen1-1/+5
2010-12-02Send current_player with RoundState.Vegard Storheil Eriksen4-10/+11
2010-12-02Added RoundState::current_player;Vegard Storheil Eriksen1-0/+6
2010-12-02Added tenpai test to allow calling riichi.Vegard Storheil Eriksen4-2/+133
2010-12-01Move hand calculations to a new file.Vegard Storheil Eriksen3-51/+103
2010-12-01List::operator bool() should be const.Vegard Storheil Eriksen1-1/+1
2010-12-01Minor bug in Game::round_end() - don't call round_start() before all clients ↵Vegard Storheil Eriksen1-1/+0
have responded.
2010-12-01Added game mode selection, with 1p and 4p testing modes.Vegard Storheil Eriksen2-8/+30
2010-12-01Made Game and Game::Player take ChildBase::p instead of Child::p.Vegard Storheil Eriksen2-5/+5
2010-12-01Made «dumb» ClientDumb.Vegard Storheil Eriksen2-0/+39
2010-12-01Made Client a child of abstract ClientBase.Vegard Storheil Eriksen1-9/+37
2010-12-01Added lobby support to Client.Vegard Storheil Eriksen2-4/+30
2010-11-30Add LobbyStatus and LobbyAction messages.Vegard Storheil Eriksen2-0/+50
2010-11-30Simplified Message API. All messages are now serialized by Boost.Serialize.Vegard Storheil Eriksen3-256/+189
2010-11-30Changed from text to binary archive.Vegard Storheil Eriksen1-4/+4
2010-11-30Change Message::BoostBase API.Vegard Storheil Eriksen2-53/+37
2010-11-29Wait for Ready from client before starting a new round.Vegard Storheil Eriksen3-6/+13
2010-11-28Command line arguments takes precedence over values from the configuration file.Atle Hellvik Havsø1-2/+5
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-28Added a Config class. Example usage:Atle Hellvik Havsø2-0/+129
Config hei; hei.add_element("nick", n); hei.add_element("server", s); hei.add_element("port", p); hei.get_element("nick"); hei.get_element("server"); hei.get_element("port"); Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-28End the round when the wall is depleted.Vegard Storheil Eriksen1-0/+7
2010-11-28Draw a replacement tile after kan.Vegard Storheil Eriksen1-0/+1