找回密码
 注册
搜索
查看: 2944|回复: 2

《斗地主》2.1版本build20080604变动

[复制链接]
发表于 2008-6-4 16:22:43 | 显示全部楼层 |阅读模式
一、客户端:
1、增加了鼠标点击进行连续选牌的功能。
2、增加了可以拽动选出的牌进行自排顺序的功能。
3、修正了一个添加名单时的BUG(可能造成程序崩溃)。

二、服务器端:
1、DLL接口OnGameEnd()增加了3个参数,用户可以用来实现记录每局的成绩记录或赠送记录。
接口定义如下:
void OnGameEnd( tagUserInfo** ppUsers, long nUserCount, long nDesk, long* nGetResults, long* nGetMoneys, tagVarInfo* pVarInfo );
增加的参数作用见DLL源程序。

三、编译环境:
采用MS Visual Studio 2005。
 楼主| 发表于 2008-6-4 20:27:12 | 显示全部楼层

补充

一、客户端和服务器端不必配套更新。
如果你暂时不需要新的接口功能,可以暂时只更新客户端。

二、如果直接使用DLL参考源程序中的OnGameEnd相关功能,请添加上game_log_money和game_log_result3这两个表。
在演示站中:
game_log_result2 表示2个人的游戏记录
game_log_result3 表示3个人的游戏记录
game_log_result4 表示4个人的游戏记录
……
他们的区别,就是nUin*、nResult*、nMoney* 字段的个数不一样。
回复

使用道具 举报

 楼主| 发表于 2008-6-4 20:28:24 | 显示全部楼层

附创表SQL语句(只适合MySQL)

  1. CREATE TABLE `game_log_result2` (                        
  2.                     `ID` int(11) NOT NULL auto_increment COMMENT '编号',  
  3.                     `nItem` int(11) default NULL COMMENT '房间号',      
  4.                     `nDesk` int(11) default NULL COMMENT '桌号',         
  5.                     `nUin0` int(11) default '0' COMMENT '玩家',           
  6.                     `nUin1` int(11) default '0',                           
  7.                     `nResult0` int(11) default '0' COMMENT '得积分',     
  8.                     `nResult1` int(11) default '0',                        
  9.                     `nMoney0` int(11) default '0' COMMENT '得财富',      
  10.                     `nMoney1` int(11) default '0',                          
  11.                     `dTime` datetime default NULL COMMENT '时间',         
  12.                     PRIMARY KEY  (`ID`)                                    
  13.                   )
复制代码
  1. CREATE TABLE `game_log_result3` (                        
  2.                     `ID` int(11) NOT NULL auto_increment COMMENT '编号',  
  3.                     `nItem` int(11) default NULL COMMENT '房间号',      
  4.                     `nDesk` int(11) default NULL COMMENT '桌号',         
  5.                     `nUin0` int(11) default '0' COMMENT '玩家',           
  6.                     `nUin1` int(11) default '0',                           
  7.                     `nUin2` int(11) default '0',                           
  8.                     `nResult0` int(11) default '0' COMMENT '得积分',     
  9.                     `nResult1` int(11) default '0',                        
  10.                     `nResult2` int(11) default '0',                        
  11.                     `nMoney0` int(11) default '0' COMMENT '得财富',      
  12.                     `nMoney1` int(11) default '0',                          
  13.                     `nMoney2` int(11) default '0',                          
  14.                     `dTime` datetime default NULL COMMENT '时间',         
  15.                     PRIMARY KEY  (`ID`)                                    
  16.                   )
复制代码
  1. CREATE TABLE `game_log_result4` (                        
  2.                     `ID` int(11) NOT NULL auto_increment COMMENT '编号',  
  3.                     `nItem` int(11) default NULL COMMENT '房间号',      
  4.                     `nDesk` int(11) default NULL COMMENT '桌号',         
  5.                     `nUin0` int(11) default '0' COMMENT '玩家',           
  6.                     `nUin1` int(11) default '0',                           
  7.                     `nUin2` int(11) default '0',                           
  8.                     `nUin3` int(11) default '0',                           
  9.                     `nResult0` int(11) default '0' COMMENT '得积分',     
  10.                     `nResult1` int(11) default '0',                        
  11.                     `nResult2` int(11) default '0',                        
  12.                     `nResult3` int(11) default '0',                        
  13.                     `nMoney0` int(11) default '0' COMMENT '得财富',      
  14.                     `nMoney1` int(11) default '0',                          
  15.                     `nMoney2` int(11) default '0',                          
  16.                     `nMoney3` int(11) default '0',                          
  17.                     `dTime` datetime default NULL COMMENT '时间',         
  18.                     PRIMARY KEY  (`ID`)                                    
  19.                   )
复制代码

  1. CREATE TABLE `game_log_money` (                                   
  2.                   `ID` int(11) NOT NULL auto_increment COMMENT '编号',         
  3.                   `uin` int(11) default NULL COMMENT '玩家号',                 
  4.                   `nItem` int(11) default NULL COMMENT '房间号',               
  5.                   `nMoney` int(11) default NULL COMMENT '泡点得到的财富',  
  6.                   `dTime` datetime default NULL COMMENT '时间',                 
  7.                   PRIMARY KEY  (`ID`)                                             
  8.                 )
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宁德市腾云网络科技有限公司 ( 闽ICP备2022007940号-5|闽公网安备 35092202000206号 )

GMT+8, 2025-6-19 08:50 , Processed in 0.015730 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表