forked from limingfan2016/game_service_system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
26 changed files
with
904 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
/* author : limingfan | ||
* date : 2018.04.19 | ||
* description : 斗地主游戏服务错误码定义 | ||
*/ | ||
|
||
#ifndef __FIGHT_LANDLORD_GAME_ERROR_CODE_H__ | ||
#define __FIGHT_LANDLORD_GAME_ERROR_CODE_H__ | ||
|
||
|
||
// 斗地主游戏服务错误码 13301 - 13999 | ||
enum EFightLandlordErrorCode | ||
{ | ||
FightLandlordNotFoundPlayer = 13301, // 找不到游戏玩家 | ||
FightLandlordGameStatusInvalidOpt = 13302, // 游戏状态错误,操作不允许 | ||
FightLandlordPlayerStatusInvalid = 13303, // 玩家状态无效 | ||
FightLandlordPlayerOptInvalid = 13304, // 无效的玩家操作 | ||
FightLandlordNotCurrentOptPlayer = 13305, // 非当前操作玩家 | ||
FightLandlordGoldInsufficient = 13306, // 金币不足 | ||
FightLandlordPlayCardParamInvalid = 13307, // 出牌参数错误 | ||
FightLandlordPlayCardNotExist = 13308, // 出了不存在的牌 | ||
FightLandlordPlayCardTypeInvalid = 13309, // 打出的牌型无效 | ||
FightLandlordPlayCardValueSmall = 13310, // 打出的牌值小,不能压制对方 | ||
FightLandlordPlayCardCountInvalid = 13311, // 打出的牌数目不对 | ||
FightLandlordPlayCardTypeMismatch = 13312, // 打出的牌型不匹配 | ||
}; | ||
|
||
|
||
#endif // __FIGHT_LANDLORD_GAME_ERROR_CODE_H__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
/* author : limingfan | ||
* date : 2018.04.19 | ||
* description : 斗地主游戏服务协议码ID定义 | ||
*/ | ||
|
||
#ifndef __FIGHT_LANDLORD_GAME_PROTOCOL_ID_H__ | ||
#define __FIGHT_LANDLORD_GAME_PROTOCOL_ID_H__ | ||
|
||
|
||
// 斗地主游戏与客户端间的消息协议ID | ||
enum EClientFightLandlordProtocolId | ||
{ | ||
// 所有游戏与客户端间的自定义消息协议ID值从 2001 开始 | ||
// 前 2000 位值由公共协议 EClientGameCommonProtocolId 占用 | ||
|
||
// 游戏开始发牌给玩家 | ||
FIGHTLANDLORD_PUSH_CARD_NOTIFY = 2001, | ||
|
||
// 玩家操作(叫地主、抢地主、出牌、托管) | ||
FIGHTLANDLORD_PLAYER_OPT_REQ = 2002, | ||
FIGHTLANDLORD_PLAYER_OPT_RSP = 2003, | ||
FIGHTLANDLORD_PLAYER_OPT_NOTIFY = 2004, | ||
|
||
// 结算通知 | ||
FIGHTLANDLORD_SETTLEMENT_NOTIFY = 2015, | ||
}; | ||
|
||
|
||
// 服务内部消息协议ID,值从 1001 开始 | ||
// 前 1000 位值由公共协议 EServiceCommonProtocolId 占用 | ||
enum EServiceFightLandlordProtocolId | ||
{ | ||
}; | ||
|
||
|
||
#endif // __FIGHT_LANDLORD_GAME_PROTOCOL_ID_H__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.