C# Class MineFrog.Player

Show file Open project: Merlin33069/MineFrog Class Usage Examples

Public Properties

Property Type Description
Average1 Averager
Average2 Averager
Average3 Averager
Average4 Averager
EnableHistoryMode bool
EnableLavaMode bool
EnableWaterMode bool
Level Level
OldLevel Level
OldPosition Pos
Position Pos
UID int
UserId byte
Username string
_delta Pos
_ip string
_isDisconnected bool
_isLoading bool
_isLoggedIn bool
pdb PDB

Private Properties

Property Type Description
BeginRead void
Disconnect void
FreeId byte
HTNO byte[]
HandleCommand void
HandleLogin void
HandleMessage void
HandlePosAndOrientPacket void
HandleSetBlockPacket void
KillThisPlayer void
NTHO ushort
Player System
ReceiveIdentificationPacket void
ReceiveMessage void
ReceivePosAndOrientPacket void
ReceiveSetBlockPacket void
SendAllDeSpawns void
SendAllSpawns void
SendBlockChange void
SendDie void
SendGlobalChat void
SendGlobalMessage void
SendGlobalMessageActual void
SendKick void
SendLevelChat void
SendMap void
SendMotd void
SendPacket void
SendRaw void
SendRaw void
SendSpawn void
SendTeleportThisPlayer void
Start void
UpdatePlayerPos void

Public Methods

Method Description
GZip ( byte mapSize, byte levelData ) : byte[]
SendMessage ( string message ) : void
SwitchMap ( Level l ) : void

Private Methods

Method Description
BeginRead ( ) : void
Disconnect ( ) : void
FreeId ( ) : byte
HTNO ( short x ) : byte[]
HandleCommand ( string message ) : void
HandleLogin ( object incoming ) : void
HandleMessage ( object incoming ) : void
HandlePosAndOrientPacket ( object incoming ) : void
HandleSetBlockPacket ( object incoming ) : void
KillThisPlayer ( ) : void
NTHO ( byte x, int offset ) : ushort
Player ( TcpClient client ) : System
ReceiveIdentificationPacket ( ) : void
ReceiveMessage ( ) : void
ReceivePosAndOrientPacket ( ) : void
ReceiveSetBlockPacket ( ) : void
SendAllDeSpawns ( ) : void
SendAllSpawns ( ) : void
SendBlockChange ( ushort x, ushort y, ushort z, byte type ) : void
SendDie ( Player player ) : void
SendGlobalChat ( Player player, string message ) : void
SendGlobalMessage ( string message ) : void
SendGlobalMessageActual ( string message ) : void
SendKick ( string message ) : void
SendLevelChat ( Player player, string message ) : void
SendMap ( ) : void
SendMotd ( ) : void
SendPacket ( Packet p ) : void
SendRaw ( byte id ) : void
SendRaw ( byte id, byte data ) : void
SendSpawn ( Player player ) : void
SendTeleportThisPlayer ( Pos newPosition ) : void
Start ( ) : void
UpdatePlayerPos ( ) : void

Method Details

GZip() public static method

public static GZip ( byte mapSize, byte levelData ) : byte[]
mapSize byte
levelData byte
return byte[]

SendMessage() public method

public SendMessage ( string message ) : void
message string
return void

SwitchMap() public method

public SwitchMap ( Level l ) : void
l Level
return void

Property Details

Average1 public static property

public static Averager,MineFrog Average1
return Averager

Average2 public static property

public static Averager,MineFrog Average2
return Averager

Average3 public static property

public static Averager,MineFrog Average3
return Averager

Average4 public static property

public static Averager,MineFrog Average4
return Averager

EnableHistoryMode public property

public bool EnableHistoryMode
return bool

EnableLavaMode public property

public bool EnableLavaMode
return bool

EnableWaterMode public property

public bool EnableWaterMode
return bool

Level public property

public Level,MineFrog Level
return Level

OldLevel public property

public Level,MineFrog OldLevel
return Level

OldPosition public property

public Pos,MineFrog OldPosition
return Pos

Position public property

public Pos,MineFrog Position
return Pos

UID public property

public int UID
return int

UserId public property

public byte UserId
return byte

Username public property

public string Username
return string

_delta public property

public Pos,MineFrog _delta
return Pos

_ip public property

public string _ip
return string

_isDisconnected public property

public bool _isDisconnected
return bool

_isLoading public property

public bool _isLoading
return bool

_isLoggedIn public property

public bool _isLoggedIn
return bool

pdb public property

public PDB pdb
return PDB