跳转到内容

PhysicsElement

物理元件

对物理元件进行相关操作处理

枚举列表

PhysicsElement.MAHJONG_SUITS

  • 描述: 麻将花色类型
成员名称成员说明
One幺鸡
Two二条
Three三条
Four四条
Five五条
Six六条
Seven七条
Rich发财

PhysicsElement.BALL_NUMBER

  • 描述: 球号(1-8显示位单色球,9-15显示位双色球)
成员名称成员说明
One1号
Two2号
Three3号
Four4号
Five5号
Six6号
Seven7号
Eight8号
Nine9号
Ten10号
Eleven11号
Twelve12号
Thirteen13号
Fourteen14号
Fifteen15号

函数列表

SetMahjongSuits

  • 描述: 设置物理麻将元件的花色

  • 范围: 服务端

参数列表:

参数类型说明
ElementIdnumber物理麻将的实例ID
SuitTypePhysicsElement.MAHJONG_SUITS花色类型
PhysicsElement:SetMahjongSuits(223,PhysicsElement.MAHJONG_SUITS.Two)

SetBallNumber

  • 描述: 设置单色球|双色球元件球号

  • 范围: 客户端

参数列表:

参数类型说明
ElementIdnumber单色球|双色球的实例ID
BallNumberPhysicsElement.BALL_NUMBER球号(1-8显示位单色球,9-15显示位双色球)
PhysicsElement:SetBallNumber(222,PhysicsElement.BALL_NUMBER.Ten)