C# Класс AngryTanks.Client.Player

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

Защищенные свойства (Protected)

Свойство Тип Описание
playerInfo PlayerInformation
shots Shot>.Dictionary
state PlayerState

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

Метод Описание
Die ( Player killer ) : void
Dispose ( ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void

Draws the callsign behind the Player.

Player ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
Spawn ( Vector2 position, System.Single rotation ) : void
Update ( GameTime gameTime ) : void

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
Shoot ( Byte shotSlot, bool local ) : void

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

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

public Die ( Player killer ) : void
killer Player
Результат void

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

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

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

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

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

Draws the callsign behind the Player.
public DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

GetTankSize() защищенный статический Метод

protected static GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
world AngryTanks.Client.World
playerInfo PlayerInformation
Результат Vector2

GetTexture() защищенный статический Метод

protected static GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
world AngryTanks.Client.World
playerInfo PlayerInformation
Результат Microsoft.Xna.Framework.Graphics.Texture2D

HandleReceivedMessage() защищенный Метод

protected HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
sender object
message AngryTanks.Client.ServerLinkMessageEvent
Результат void

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

public Player ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
world AngryTanks.Client.World
playerInfo PlayerInformation
Результат System

Shoot() защищенный Метод

protected Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
shotSlot Byte
initialPosition Vector2
rotation System.Single
initialVelocity Vector2
local bool
Результат void

Shoot() защищенный Метод

protected Shoot ( Byte shotSlot, bool local ) : void
shotSlot Byte
local bool
Результат void

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

public Spawn ( Vector2 position, System.Single rotation ) : void
position Vector2
rotation System.Single
Результат void

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

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

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

playerInfo защищенное свойство

protected PlayerInformation playerInfo
Результат PlayerInformation

shots защищенное свойство

protected Dictionary shots
Результат Shot>.Dictionary

state защищенное свойство

protected PlayerState state
Результат PlayerState