C# Class MiningGameServer.NetworkPlayer

Inheritance: MiningGameServer.Entities.ServerEntityMoveable
Exibir arquivo Open project: geel9/Minor-Destruction Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

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

Method Details

DropItem() public method

public DropItem ( ) : void
return void

EntityMovement() public method

public EntityMovement ( ) : void
return void

HurtPlayer() public method

public HurtPlayer ( int damage ) : void
damage int
return void

NetworkPlayer() public method

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

Respawn() public method

public Respawn ( ) : void
return void

SendEquippedItemUpdate() public method

public SendEquippedItemUpdate ( ) : void
return void

SetPlayerEquippedSlot() public method

public SetPlayerEquippedSlot ( int slot ) : void
slot int
return void

Update() public method

public Update ( GameTime theTime ) : void
theTime Microsoft.Xna.Framework.GameTime
return void

UpdateCache() public method

public UpdateCache ( ) : void
return void

Property Details

AttackTimer public_oe property

public int AttackTimer
return int

FacingLeft public_oe property

public bool FacingLeft
return bool

Inventory public_oe property

public PlayerInventory,MiningGameServer.PlayerClasses Inventory
return MiningGameServer.PlayerClasses.PlayerInventory

MovementFlags public_oe property

public byte MovementFlags
return byte

NetConnection public_oe property

public NetConnection,Lidgren.Network NetConnection
return Lidgren.Network.NetConnection

PClass public_oe property

public PlayerClass,MiningGameServer.Player PClass
return MiningGameServer.Player.PlayerClass

PlayerAimAngle public_oe property

public float PlayerAimAngle
return float

PlayerBlockCache public_oe property

public BlockData[,] PlayerBlockCache
return ].BlockData[

PlayerClass public_oe property

public int PlayerClass
return int

PlayerHealth public_oe property

public int PlayerHealth
return int

PlayerID public_oe property

public byte PlayerID
return byte

PlayerName public_oe property

public string PlayerName
return string

PlayerTeam public_oe property

public int PlayerTeam
return int

PressedKeys public_oe property

public List PressedKeys
return List

UpdateMask public_oe property

public byte UpdateMask
return byte