summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2010-12-11Add constructors to List.Vegard Storheil Eriksen1-0/+7
2010-12-07Added Message::GameResume.Vegard Storheil Eriksen1-0/+15
2010-12-07Removed GameStart::player_id.Vegard Storheil Eriksen1-2/+0
2010-12-06Changed format of Message::Login and Message::LoginResponse to accomodate ↵Vegard Storheil Eriksen1-4/+20
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-05Added a Set-class.Vegard Storheil Eriksen1-0/+24
2010-12-05Renamed target types.Vegard Storheil Eriksen1-3/+6
2010-12-04Added unary CyclicInt::operator-().Vegard Storheil Eriksen1-0/+4
2010-12-03Use PlayerState and GameState in Message::RoundState.Vegard Storheil Eriksen1-49/+8
2010-12-03Add PlayerState and GameState-structs to bundle together related information.Vegard Storheil Eriksen1-0/+64
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-02Send current_player with RoundState.Vegard Storheil Eriksen1-2/+3
2010-12-02Added RoundState::current_player;Vegard Storheil Eriksen1-0/+6
2010-12-01List::operator bool() should be const.Vegard Storheil Eriksen1-1/+1
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-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-27Whoops, missed one. Also, we don't need to construct a rotated tile.Vegard Storheil Eriksen2-4/+4
2010-11-27Force all fields of Tile to be initialized.Vegard Storheil Eriksen2-8/+1
2010-11-27Use tilegroups for exposed tiles instead of just a list of tiles.Vegard Storheil Eriksen1-1/+1
2010-11-27Added List::del().Vegard Storheil Eriksen1-0/+5
2010-11-27Added CyclicInt convenience class.Vegard Storheil Eriksen1-0/+80
2010-11-27Fixed minor regression in server.Vegard Storheil Eriksen1-3/+3
2010-11-27Split target type and target offset in Action.Vegard Storheil Eriksen2-6/+15
2010-11-27Removed obsolete files.Vegard Storheil Eriksen3-68/+0
2010-11-27Changed format of RoundState again.Vegard Storheil Eriksen2-19/+28
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-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-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 Eriksen1-6/+5
2010-11-25Check for valid action.Vegard Storheil Eriksen2-1/+22
2010-11-24Added error handling around connections.Vegard Storheil Eriksen2-5/+15
2010-11-23Changed the target in action from 2 ints into a vector<int>. Making it ↵Atle Hellvik Havsø1-6/+3
easier to scale when we start with kan and riichi. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-23Added a second target to Action.Atle Hellvik Havsø1-0/+3
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-21Added a empty RoundEnd Message.Atle Hellvik Havsø3-0/+14
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ø2-0/+3
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Minor change with State.Atle Hellvik Havsø2-3/+3
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ø1-0/+4
to the Action-message. So we can keep track of which player did what action. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>