C# Класс MiningGame.Code.Entities.PlayerEntity

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

Открытые свойства

Свойство Тип Описание
EquippedItem System.Item
FacingLeft bool
LegsAnimateable Animateable
OtherPlayerNetworkFlags byte
PClass MiningGame.Code.PlayerClasses.PlayerClass
PlayerID byte
PlayerName string
TorsoAnimateable Animateable
playerTeam int

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

Метод Описание
Draw ( SpriteBatch sb ) : void
GetAimingAngle ( ) : short
GetBlockAimingAt ( ) : Vector2
OnAttack ( ) : void
PlayerEntity ( Vector2 position, byte playerID, string name = "Player" ) : System
Update ( GameTime time ) : void

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

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

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

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

public GetAimingAngle ( ) : short
Результат short

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

public GetBlockAimingAt ( ) : Vector2
Результат Vector2

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

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

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

public PlayerEntity ( Vector2 position, byte playerID, string name = "Player" ) : System
position Vector2
playerID byte
name string
Результат System

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

public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime
Результат void

Описание свойств

EquippedItem публичное свойство

public Item,System EquippedItem
Результат System.Item

FacingLeft публичное свойство

public bool FacingLeft
Результат bool

LegsAnimateable публичное свойство

public Animateable LegsAnimateable
Результат Animateable

OtherPlayerNetworkFlags публичное свойство

public byte OtherPlayerNetworkFlags
Результат byte

PClass публичное свойство

public PlayerClass,MiningGame.Code.PlayerClasses PClass
Результат MiningGame.Code.PlayerClasses.PlayerClass

PlayerID публичное свойство

public byte PlayerID
Результат byte

PlayerName публичное свойство

public string PlayerName
Результат string

TorsoAnimateable публичное свойство

public Animateable TorsoAnimateable
Результат Animateable

playerTeam публичное свойство

public int playerTeam
Результат int