game_sync/robot/base/constant.go

47 lines
2.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package base
// 标记
const (
SessionAttributeClientAccountId int = iota // 账号
SessionAttributeDelAccount // 待删除账号
SessionAttributePingTimer // 心跳定时器
SessionAttributeLoginTimer // 登录定时器
SessionAttributeEnteringMatchScene // 进入比赛场中
SessionAttributeEnteringScene // 进入非比赛场中
SessionAttributeUser // 玩家信息
SessionAttributeScene // 房间对象
SessionAttributeSceneId // 房间ID
)
// 玩家状态标记
const (
PlayerState_Online int32 = 1 << iota //在线标记 1
PlayerState_Ready //准备标记 2
PlayerState_SceneOwner //房主标记 3
PlayerState_Choke //呛标记 被复用于金花,是否被动弃牌 4
PlayerState_Ting //听牌标记 5 金花复用,标记最后押注时,是否看牌
PlayerState_NoisyBanker //闹庄标记 6 金花复用标记allin时是否看牌
PlayerState_WaitOp //等待操作标记 7
PlayerState_Auto //托管状态 8
PlayerState_Check //已看牌状态 9
PlayerState_Fold //弃牌状态 10
PlayerState_Lose //输状态 11
PlayerState_Win //赢状态 12
PlayerState_WaitNext //等待下一局游戏 13
PlayerState_GameBreak //不能继续游戏 14
PlayerState_Leave //暂离状态 15
PlayerState_Audience //观众标记 16
PlayerState_AllIn //allin标记 17
PlayerState_FinalAllIn //最后一圈最后一个人allin标记 18
PlayerState_Show //亮牌标记 19
PlayerState_EnterSceneFailed //进场失败 20
PlayerState_PKLost //发起Pk,失败 21
PlayerState_IsChangeCard //牛牛标识是否换牌 22
PlayerState_IsPayChangeCard //牛牛标识是否充值换牌 23
PlayerState_Bankruptcy //玩家破产 24
PlayerState_MatchQuit //退赛标记 25
PlayerState_AllFollow //跟到底状态 26
PlayerState_SAdjust //单控状态 27
PlayerState_Max
)