summaryrefslogtreecommitdiff
path: root/server/player.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-12-05Renamed target types.Vegard Storheil Eriksen1-6/+6
2010-12-04Added riichi handler.Vegard Storheil Eriksen1-18/+22
2010-12-04Fill all fields in GameState and PlayerState.Vegard Storheil Eriksen1-3/+5
2010-12-03Use PlayerState and GameState in Message::RoundState.Vegard Storheil Eriksen1-4/+10
2010-12-02Sort hands before testing agari/tenpai.Vegard Storheil Eriksen1-1/+5
2010-12-02Added tenpai test to allow calling riichi.Vegard Storheil Eriksen1-0/+28
2010-12-01Move hand calculations to a new file.Vegard Storheil Eriksen1-51/+4
2010-11-28Separated Game::Player method definitions into new file.Vegard Storheil Eriksen1-0/+331
2010-11-25Rename Player to Client, to better reflect what it represents.Vegard Storheil Eriksen1-102/+0
A Player should be specific to a game, while a Client may participate in several.
2010-11-25Check for valid action.Vegard Storheil Eriksen1-5/+7
2010-11-24Moved player-callbacks from class members to bound variables.Vegard Storheil Eriksen1-17/+13
2010-11-21Made the server send a empty RoundEnd message when the wall is empty ↵Atle Hellvik Havsø1-1/+11
(Contains only 14 tiles). 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ø1-0/+1
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Minor change with State.Atle Hellvik Havsø1-1/+1
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/+1
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-19Add game state and action functions to Player class.Vegard Storheil Eriksen1-0/+28
2010-11-15Implement server program flow around GameStart.Vegard Storheil Eriksen1-3/+17
2010-11-15Added Game-class and GameStart message.Vegard Storheil Eriksen1-0/+4
2010-11-15Added Player class.Vegard Storheil Eriksen1-5/+42
2010-11-08Added smartpointer to connection in player, rather than storing ip and port.Ole Daniel Evensen1-3/+2
2010-11-08added player and game classesOle Daniel Evensen1-0/+10