C# Class AngryTanks.Server.Player

Afficher le fichier Open project: dvicory/AngryTanks Class Usage Examples

Méthodes publiques

Свойство Type Description
Callsign String
Connection Lidgren.Network.NetConnection
Slot Byte
Team TeamType

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
BroadcastUpdate ( NetIncomingMessage msg ) : void

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

SendState ( ) : void

Sends initial state to this Player.

Method Details

Die() public méthode

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

EndShot() public méthode

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

GetMsgScore() public méthode

public GetMsgScore ( ) : NetOutgoingMessage
Résultat Lidgren.Network.NetOutgoingMessage

HandleData() public méthode

public HandleData ( NetIncomingMessage incomingMsg ) : void
incomingMsg Lidgren.Network.NetIncomingMessage
Résultat void

Player() public méthode

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
Résultat System

SendMessage() public méthode

public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method ) : NetSendResult
msg Lidgren.Network.NetOutgoingMessage
method NetDeliveryMethod
Résultat NetSendResult

SendMessage() public méthode

public SendMessage ( NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel ) : NetSendResult
msg Lidgren.Network.NetOutgoingMessage
method NetDeliveryMethod
sequenceChannel int
Résultat NetSendResult

Shoot() public méthode

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

Spawn() public méthode

Spawns the Player and notifies all other Players about it.
public Spawn ( ) : void
Résultat void

Update() public méthode

public Update ( System.DateTime lastUpdate ) : void
lastUpdate System.DateTime
Résultat void

Property Details

Callsign public_oe property

public String Callsign
Résultat String

Connection public_oe property

public NetConnection,Lidgren.Network Connection
Résultat Lidgren.Network.NetConnection

Slot public_oe property

public Byte Slot
Résultat Byte

Team public_oe property

public TeamType Team
Résultat TeamType