C# Класс Astroids.Classes.Player

Показать файл Открыть проект

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

Свойство Тип Описание
weapList List

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

Метод Описание
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch spriteBatch ) : void
GetDirection ( ) : Vector2
GetLife ( ) : int
GetPlayerHitbox ( ) : Rectangle
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Move ( ) : void
Player ( ) : System
Player ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
RocketExplosion ( GameTime gameTime ) : void
SetLives ( int lives ) : void
Shoot ( int weapon ) : Weapon
SlowDown ( ) : void
Update ( GameTime gameTime ) : void

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

CheckBoundries() публичный метод

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
Результат void

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

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

GetDirection() публичный метод

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

GetLife() публичный метод

public GetLife ( ) : int
Результат int

GetPlayerHitbox() публичный метод

public GetPlayerHitbox ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle

Load() публичный метод

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Результат void

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

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

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

public Player ( ) : System
Результат System

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

public Player ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
Результат System

RocketExplosion() публичный метод

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

SetLives() публичный метод

public SetLives ( int lives ) : void
lives int
Результат void

Shoot() публичный метод

public Shoot ( int weapon ) : Weapon
weapon int
Результат Weapon

SlowDown() публичный метод

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

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

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

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

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

public List weapList
Результат List