C# Class MiningGameServer.NetworkPlayer

Inheritance: MiningGameServer.Entities.ServerEntityMoveable
Afficher le fichier Open project: geel9/Minor-Destruction Class Usage Examples

Méthodes publiques

Свойство Type Description
AttackTimer int
FacingLeft bool
Inventory MiningGameServer.PlayerClasses.PlayerInventory
MovementFlags byte
NetConnection Lidgren.Network.NetConnection
PClass MiningGameServer.Player.PlayerClass
PlayerAimAngle float
PlayerBlockCache ].BlockData[
PlayerClass int
PlayerHealth int
PlayerID byte
PlayerName string
PlayerTeam int
PressedKeys List
UpdateMask byte

Méthodes publiques

Méthode Description
DropItem ( ) : void
EntityMovement ( ) : void
HurtPlayer ( int damage ) : void
NetworkPlayer ( byte playerID, NetConnection connection, Vector2 playerPos, string name ) : System
Respawn ( ) : void
SendEquippedItemUpdate ( ) : void
SetPlayerEquippedSlot ( int slot ) : void
Update ( GameTime theTime ) : void
UpdateCache ( ) : void

Private Methods

Méthode Description
Attack ( ) : void
AttackArrows ( ) : void
AttackSword ( ) : void
BlockCollisions ( ) : void
GenerateRowBitMask ( int rowX ) : long[]
GetNumBitsSet ( long bits ) : int
PlayerCollisions ( ) : void

Method Details

DropItem() public méthode

public DropItem ( ) : void
Résultat void

EntityMovement() public méthode

public EntityMovement ( ) : void
Résultat void

HurtPlayer() public méthode

public HurtPlayer ( int damage ) : void
damage int
Résultat void

NetworkPlayer() public méthode

public NetworkPlayer ( byte playerID, NetConnection connection, Vector2 playerPos, string name ) : System
playerID byte
connection Lidgren.Network.NetConnection
playerPos Vector2
name string
Résultat System

Respawn() public méthode

public Respawn ( ) : void
Résultat void

SendEquippedItemUpdate() public méthode

public SendEquippedItemUpdate ( ) : void
Résultat void

SetPlayerEquippedSlot() public méthode

public SetPlayerEquippedSlot ( int slot ) : void
slot int
Résultat void

Update() public méthode

public Update ( GameTime theTime ) : void
theTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateCache() public méthode

public UpdateCache ( ) : void
Résultat void

Property Details

AttackTimer public_oe property

public int AttackTimer
Résultat int

FacingLeft public_oe property

public bool FacingLeft
Résultat bool

Inventory public_oe property

public PlayerInventory,MiningGameServer.PlayerClasses Inventory
Résultat MiningGameServer.PlayerClasses.PlayerInventory

MovementFlags public_oe property

public byte MovementFlags
Résultat byte

NetConnection public_oe property

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

PClass public_oe property

public PlayerClass,MiningGameServer.Player PClass
Résultat MiningGameServer.Player.PlayerClass

PlayerAimAngle public_oe property

public float PlayerAimAngle
Résultat float

PlayerBlockCache public_oe property

public BlockData[,] PlayerBlockCache
Résultat ].BlockData[

PlayerClass public_oe property

public int PlayerClass
Résultat int

PlayerHealth public_oe property

public int PlayerHealth
Résultat int

PlayerID public_oe property

public byte PlayerID
Résultat byte

PlayerName public_oe property

public string PlayerName
Résultat string

PlayerTeam public_oe property

public int PlayerTeam
Résultat int

PressedKeys public_oe property

public List PressedKeys
Résultat List

UpdateMask public_oe property

public byte UpdateMask
Résultat byte