C# 클래스 AngryTanks.Server.Player

파일 보기 프로젝트 열기: dvicory/AngryTanks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Callsign String
Connection Lidgren.Network.NetConnection
Slot Byte
Team TeamType

공개 메소드들

메소드 설명
Die ( NetIncomingMessage incomingMessage ) : void

Handles death reports by players and broadcasts that to all other Players.

EndShot ( NetIncomingMessage incomingMessage ) : void

Handles end shots by players and broadcasts that to all other Players.

GetMsgScore ( ) : NetOutgoingMessage

HandleData ( NetIncomingMessage incomingMsg ) : void

Player ( AngryTanks.Server.GameKeeper gameKeeper, Byte slot, NetConnection connection, PlayerInformation playerInfo ) : System
SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : NetSendResult
SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel ) : NetSendResult
Shoot ( NetIncomingMessage incomingMessage ) : void

Handles new shots by players and broadcasts that to all other Players.

Spawn ( ) : void

Spawns the Player and notifies all other Players about it.

Update ( System.DateTime lastUpdate ) : void

비공개 메소드들

메소드 설명
BroadcastUpdate ( NetIncomingMessage msg ) : void

Broadcasts a MsgPlayerServerUpdatePacket to all other Players after receiving a MsgPlayerClientUpdatePacket.

SendState ( ) : void

Sends initial state to this Player.

메소드 상세

Die() 공개 메소드

Handles death reports by players and broadcasts that to all other Players.
public Die ( NetIncomingMessage incomingMessage ) : void
incomingMessage Lidgren.Network.NetIncomingMessage
리턴 void

EndShot() 공개 메소드

Handles end shots by players and broadcasts that to all other Players.
public EndShot ( NetIncomingMessage incomingMessage ) : void
incomingMessage Lidgren.Network.NetIncomingMessage
리턴 void

GetMsgScore() 공개 메소드

public GetMsgScore ( ) : NetOutgoingMessage
리턴 Lidgren.Network.NetOutgoingMessage

HandleData() 공개 메소드

public HandleData ( NetIncomingMessage incomingMsg ) : void
incomingMsg Lidgren.Network.NetIncomingMessage
리턴 void

Player() 공개 메소드

public Player ( AngryTanks.Server.GameKeeper gameKeeper, Byte slot, NetConnection connection, PlayerInformation playerInfo ) : System
gameKeeper AngryTanks.Server.GameKeeper
slot Byte
connection Lidgren.Network.NetConnection
playerInfo PlayerInformation
리턴 System

SendMessage() 공개 메소드

public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : NetSendResult
msg Lidgren.Network.NetOutgoingMessage
method NetDeliveryMethod
리턴 NetSendResult

SendMessage() 공개 메소드

public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel ) : NetSendResult
msg Lidgren.Network.NetOutgoingMessage
method NetDeliveryMethod
sequenceChannel int
리턴 NetSendResult

Shoot() 공개 메소드

Handles new shots by players and broadcasts that to all other Players.
public Shoot ( NetIncomingMessage incomingMessage ) : void
incomingMessage Lidgren.Network.NetIncomingMessage
리턴 void

Spawn() 공개 메소드

Spawns the Player and notifies all other Players about it.
public Spawn ( ) : void
리턴 void

Update() 공개 메소드

public Update ( System.DateTime lastUpdate ) : void
lastUpdate System.DateTime
리턴 void

프로퍼티 상세

Callsign 공개적으로 프로퍼티

public String Callsign
리턴 String

Connection 공개적으로 프로퍼티

public NetConnection,Lidgren.Network Connection
리턴 Lidgren.Network.NetConnection

Slot 공개적으로 프로퍼티

public Byte Slot
리턴 Byte

Team 공개적으로 프로퍼티

public TeamType Team
리턴 TeamType