C# Класс CEngineSharp_Client.World.Entity.Player

Наследование: IEntity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SendMovement ( int x, int y, Directions direction ) : void

Описание методов

AddInventoryItem() публичный Метод

public AddInventoryItem ( Item item ) : void
item Item
Результат void

ClearInventory() публичный Метод

public ClearInventory ( ) : void
Результат void

Draw() публичный Метод

public Draw ( RenderTarget target ) : void
target RenderTarget
Результат void

DrawInventory() публичный Метод

public DrawInventory ( RenderWindow window ) : void
window SFML.Graphics.RenderWindow
Результат void

GetInventoryItem() публичный Метод

public GetInventoryItem ( int slotNum ) : Item
slotNum int
Результат Item

GetInventoryItem() публичный Метод

public GetInventoryItem ( int invenX, int invenY ) : Item
invenX int
invenY int
Результат Item

MouseCordToSlotNum() публичный Метод

public MouseCordToSlotNum ( int mouseX, int mouseY ) : int
mouseX int
mouseY int
Результат int

Move() публичный Метод

public Move ( int newX, int newY, Directions direction ) : void
newX int
newY int
direction Directions
Результат void

Player() публичный Метод

public Player ( Texture texture, Vector2i position ) : System.Collections.Generic
texture SFML.Graphics.Texture
position Vector2i
Результат System.Collections.Generic

TryDropInventoryItem() публичный Метод

public TryDropInventoryItem ( int mouseX, int mouseY ) : void
mouseX int
mouseY int
Результат void

TryMove() публичный Метод

public TryMove ( ) : void
Результат void

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime GameTime
Результат void

Warp() публичный Метод

public Warp ( int newX, int newY, Directions direction ) : void
newX int
newY int
direction Directions
Результат void