C# Class MiningGame.Code.Entities.PlayerEntity

Inheritance: EntityMoveable
Mostra file Open project: geel9/Minor-Destruction Class Usage Examples

Public Properties

Property Type Description
EquippedItem System.Item
FacingLeft bool
LegsAnimateable Animateable
OtherPlayerNetworkFlags byte
PClass MiningGame.Code.PlayerClasses.PlayerClass
PlayerID byte
PlayerName string
TorsoAnimateable Animateable
playerTeam int

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
GetAimingAngle ( ) : short
GetBlockAimingAt ( ) : Vector2
OnAttack ( ) : void
PlayerEntity ( Vector2 position, byte playerID, string name = "Player" ) : System
Update ( GameTime time ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetAimingAngle() public method

public GetAimingAngle ( ) : short
return short

GetBlockAimingAt() public method

public GetBlockAimingAt ( ) : Vector2
return Vector2

OnAttack() public method

public OnAttack ( ) : void
return void

PlayerEntity() public method

public PlayerEntity ( Vector2 position, byte playerID, string name = "Player" ) : System
position Vector2
playerID byte
name string
return System

Update() public method

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

Property Details

EquippedItem public_oe property

public Item,System EquippedItem
return System.Item

FacingLeft public_oe property

public bool FacingLeft
return bool

LegsAnimateable public_oe property

public Animateable LegsAnimateable
return Animateable

OtherPlayerNetworkFlags public_oe property

public byte OtherPlayerNetworkFlags
return byte

PClass public_oe property

public PlayerClass,MiningGame.Code.PlayerClasses PClass
return MiningGame.Code.PlayerClasses.PlayerClass

PlayerID public_oe property

public byte PlayerID
return byte

PlayerName public_oe property

public string PlayerName
return string

TorsoAnimateable public_oe property

public Animateable TorsoAnimateable
return Animateable

playerTeam public_oe property

public int playerTeam
return int