C# Class CEngineSharp_Client.World.Entity.Player

Inheritance: IEntity
Show file Open project: JohnLamontagne/CEngineSharp Class Usage Examples

Public Methods

Method Description
AddInventoryItem ( Item item ) : void
ClearInventory ( ) : void
Draw ( RenderTarget target ) : void
DrawInventory ( RenderWindow window ) : void
GetInventoryItem ( int slotNum ) : Item
GetInventoryItem ( int invenX, int invenY ) : Item
MouseCordToSlotNum ( int mouseX, int mouseY ) : int
Move ( int newX, int newY, Directions direction ) : void
Player ( Texture texture, Vector2i position ) : System.Collections.Generic
TryDropInventoryItem ( int mouseX, int mouseY ) : void
TryMove ( ) : void
Update ( GameTime gameTime ) : void
Warp ( int newX, int newY, Directions direction ) : void

Private Methods

Method Description
SendMovement ( int x, int y, Directions direction ) : void

Method Details

AddInventoryItem() public method

public AddInventoryItem ( Item item ) : void
item Item
return void

ClearInventory() public method

public ClearInventory ( ) : void
return void

Draw() public method

public Draw ( RenderTarget target ) : void
target RenderTarget
return void

DrawInventory() public method

public DrawInventory ( RenderWindow window ) : void
window SFML.Graphics.RenderWindow
return void

GetInventoryItem() public method

public GetInventoryItem ( int slotNum ) : Item
slotNum int
return Item

GetInventoryItem() public method

public GetInventoryItem ( int invenX, int invenY ) : Item
invenX int
invenY int
return Item

MouseCordToSlotNum() public method

public MouseCordToSlotNum ( int mouseX, int mouseY ) : int
mouseX int
mouseY int
return int

Move() public method

public Move ( int newX, int newY, Directions direction ) : void
newX int
newY int
direction Directions
return void

Player() public method

public Player ( Texture texture, Vector2i position ) : System.Collections.Generic
texture SFML.Graphics.Texture
position Vector2i
return System.Collections.Generic

TryDropInventoryItem() public method

public TryDropInventoryItem ( int mouseX, int mouseY ) : void
mouseX int
mouseY int
return void

TryMove() public method

public TryMove ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void

Warp() public method

public Warp ( int newX, int newY, Directions direction ) : void
newX int
newY int
direction Directions
return void