Commit Graph
75 Commits
Author SHA1 Message Date
lotodore 7bbf76fe5d Added irc support for lobby dialog. Takes some time to connect before messages can be sent/received. No special stuff yet, no user list, no connection notifications. Still work in progress. 2007-09-26 11:48:33 +00:00
lotodore 9d0edc5eee Major redesign: The game can not be left without disconnecting from the server. This happens if a player is kicked, if he wishes to leave, or for other reasons. Error packets from the server will always cause a disconnect, however.
If joining a game fails, there is a proper failure packet now.
2007-09-06 19:09:05 +00:00
lotodore 9ed217609b Internet game lobby dialog shows now overview of games and whether they are private. Now showing connection progress before the internet game lobby. 2007-09-04 12:44:11 +00:00
lotodore bd53403752 Major redesign: Using game ids and player ids in gui (associated with tree view items).
Player list of all network games is now dynamically updated in lobby (no polling, server sends events).
2007-09-02 16:36:52 +00:00
lotodore fa8d7b14ec Information about the game is now shown in lobby, when selecting a game.
Some GUI modifications, GUI update is working properly now if the dialog is shown the second time (after clearing items).
List of players for the game is still missing. With the new on-demand model for player id/player name, this is kind of hard to implement.
2007-08-27 09:57:51 +00:00
lotodore 56b24e09eb Major design change in network protocol: Player information is now requested by clients whenever it is needed. The server only sends player ids. The client has a cache with player information. 2007-08-26 22:41:37 +00:00
lotodore 7210d1b1b4 Linefeeds. 2007-08-21 12:38:49 +00:00
lotodore 839a4f7112 More steps towards supporting multiple games per server. Player rights still broken, so starting the game is not possible. Games are not yet terminated after all players have left. 2007-08-21 12:34:33 +00:00
doitux c34f683c41 BeRo refactoring 2007-08-07 13:07:39 +00:00
doitux 2f76bb82f9 BeRo refactoring 2007-08-07 00:05:29 +00:00
lotodore 0da29b3874 The console server can now be fully used for a single game. The first player to join the game is admin, he can start the game and kick players.
However, if the admin player leaves, a new game can only be started if all players have left before (this is a bug, admin status should be passed to another player).
2007-08-02 20:52:13 +00:00
lotodore 5c63a12104 All sounds are now only played if sound output is on (even the ping in network game). Audio is only initialized if it is enabled. Fixed double sounds in network games. Simplified fading out cards on fold. 2007-06-16 09:48:23 +00:00
doitux 4bfe82d214 signalFadeOutHumanPlayerCards() 2007-06-15 21:46:02 +00:00
lotodore e19f6c7471 Rewrote the code which handles leaving of players during the network game. Some bug is still remaining. 2007-06-15 10:38:41 +00:00
lotodore 5af91f4ea2 Winning a game is now logged. 2007-06-11 20:35:12 +00:00
lotodore baf2c82864 Added new packet type as end of game notification. Now displaying dialogs at end of game, to start a new game. Server errors are displayed. 2007-06-10 23:28:25 +00:00
lotodore b624714f5d Resetting cards value on client side each hand. Added GUI synchronization function. Fixed update of pot when all but one fold. Reset sets on end of hand. 2007-06-10 12:46:29 +00:00
lotodore db4aea3f78 Automatic action when for player timeout. First try, not finished yet. 2007-06-08 22:14:05 +00:00
lotodore 9a29830532 Player action timeout - display is working, function still missing. 2007-06-07 23:24:22 +00:00
lotodore 9a59e688e6 Logging in network games should work now. 2007-06-07 18:41:11 +00:00
lotodore 05a86be4fe Delay after showing cards when all in condition is true. Added option TCP_NODELAY. Round is now shown before dealing cards. 2007-06-07 14:06:22 +00:00
lotodore 686c028b38 Server errors are now shown. 2007-06-04 17:04:03 +00:00
doitux ffbe8ac924 add logPlayerLeftMsg() 2007-06-04 07:43:44 +00:00
lotodore 1fcb0c80fd Fixed init gui in networking (is now thread safe). Fixed displaying of game/hand number for network games. 2007-06-03 13:36:24 +00:00
doitux ccb339be04 highlightRoundLabel --> refreshGameLabels 2007-05-29 18:37:49 +00:00
doitux fbfd9eb96a playerbuttons hand after get incative bugfix
logDealBoardCards now in engine
2007-05-26 19:28:34 +00:00
lotodore 5cb5509dec Networking should mostly be working now. Some small issues concerning the display of pot/sets, and some delays are still needed. 2007-05-26 17:06:03 +00:00
lotodore 13a731e041 Chat messages are now working. 2007-05-25 16:03:12 +00:00
doitux 2333079b13 add chat functions 2007-05-25 00:09:51 +00:00
lotodore 4a53678291 Client engine factory needs to be free of configuration file (configuration provided by server). Separated specific start data from general game data. Sending client game object to GUI after creation. Client thread now manages player and game data. 2007-05-20 00:16:29 +00:00
lotodore e7b31f2d44 All gui calls through guiwrapper are now thread safe. 2007-05-18 23:16:54 +00:00
lotodore b773c30ae0 Start position of dealer is now set via network. Added files for network client engine. Added factory code. 2007-05-18 17:13:27 +00:00
lotodore 5f033730da Restructured network server. 2007-05-14 21:18:24 +00:00
lotodore 2d894c6a2c Trying to bring life to the server. 2007-05-14 12:40:42 +00:00
lotodore 37bf6e4eb9 Added packet type to start a "Hand". Added generic gui for the server. 2007-05-13 17:50:48 +00:00
doitux 8ad92920cc one ConfigFile for all
killed the tinyxml warnings
2007-05-13 12:35:27 +00:00
lotodore 6fbef0af20 Two step initialization for engine. First step: Create and initialize objects (constructor). Second step: Start the engine, update the UI. 2007-05-12 22:00:59 +00:00
lotodore 7c6337d810 Changes in preparation for the integration of the network server. GUI does not directly know Game and Hand any more, only Session. WARNING: This version crashes due to initialization order problems. 2007-05-11 12:01:13 +00:00
doitux c3e102f745 new connected player list in waitforservertostartgame 2007-05-06 21:15:43 +00:00
doitux d7e2bf9a2e 2007-05-02 22:46:29 +00:00
lotodore f6fb29b883 GUI initialization now called by session. 2007-05-02 21:20:54 +00:00
lotodore e0bc14282f Now using int as parameters for the signal/slot method. This needs to be fixed some time... 2007-04-27 22:55:19 +00:00
lotodore 73a5117066 Configuration is transferred. A new game should be started on client side, but signal/slot is not working yet. Oh well. 2007-04-27 21:35:18 +00:00
doitux 6230dc8581 utf8 for logdir and datadir xml stream 2007-04-21 20:42:50 +00:00
lotodore a8cce94d3b Back to rev. 347 2007-04-20 23:14:08 +00:00
doitux 2b94ce958f path to UTF8
configfile split
2007-04-18 00:11:24 +00:00
lotodore 27cd08ccb0 Maximum number of players is now a constant in game_defs.h. 2007-04-17 07:28:32 +00:00
doitux cd37f783ef 2007-04-13 21:54:26 +00:00
lotodore 07a0e01620 Added callback to display player names of connected players. 2007-04-08 20:35:42 +00:00
doitux e89b543a92 stringToUtf8 added in guiinterface 2007-04-08 16:46:50 +00:00