interfacer

package
v0.0.0-...-f84f93e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-01-23 10:43
  • Filename : iconn.go
  • Description : 每个玩家socket连接的对象接口
  • ******************************************************

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-01-23 11:01
  • Filename : iuser.go
  • Description : 玩家自己的详细数据接口
  • ******************************************************

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-06-11 16:27
  • Filename : interface.go
  • Description : 零散的接口
  • ******************************************************

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-01-23 10:42
  • Filename : iroom.go
  • Description : 房间的数据接口
  • ******************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConn

type IConn interface {
	Close()
	Send(IProto)
	GetUserid() string
	SetUserid(string)
	GetLogin() bool
	SetLogin()
	GetIPAddr() uint32
	GetConnected() bool
}

type IDesk

type IDesk interface {
	Discard(uint32, byte, bool) int32
	Operate(uint32, int64, uint32) int32
	Readying(uint32, bool) int32
	Enter(IPlayer) int32
	Vote(bool, uint32, uint32) int32
	Broadcasts(IProto)
	Closed(bool)
	SetCheat([][]byte, []byte, byte)
	MaiZi(seat, count uint32) int32
	Offline(uint32, bool)

	ToString() string
}

type IPlayer

type IPlayer interface {
	GetUserid() string
	GetSeat() uint32
	GetNickname() string
	GetPhone() string

	SetUserid(string)
	SetNickname(string)
	SetSex(uint32)
	SetPwd(string)
	SetReady(bool)
	GetReady() bool

	SetLongitudeLatitude(longitude, latitude float32)
	ConverDataUser() *protocol.UserData
	ConverProtoUser() *protocol.ProtoUser
	GetInviteCode() string // 私人局邀请码
	GetRoomType() uint32   // 房间类型ID,对应房间表
	GetRoomID() uint32     // 比赛场或金币场房间id
	// 分别为:房间类型ID,房间号,房间邀请码
	SetRoom(uint32, uint32, string)
	ClearRoom()
	GetPlatform() uint32

	SetConn(IConn)
	GetConn() IConn
	Send(IProto)

	GetRoomCard() uint32
	SetRoomCard(uint32)

	GetBuild() string
	SetBuild(string)
	UserSave()
}

type IProto

type IProto interface {
	GetCode() uint32
	Reset()
	String() string
	ProtoMessage()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL