C# Класс Gravitation.SpriteObjects.EmpShot

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

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

Свойство Тип Описание
effectTime int

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

Метод Описание
Draw ( SpriteBatch theSpriteBatch ) : void
EmpShot ( World world, Vector2 position, float rotation, DestroyMeHandler onDeathHandler ) : System
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
Update ( GameTime gameTime, Matrix _view ) : void
altFire ( Vector2 theStartPosition, float rotation, float shotSpeed ) : void

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

Метод Описание
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool
rotateVector ( Vector2 direction, float angle ) : Vector2

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

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

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

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

public EmpShot ( World world, Vector2 position, float rotation, DestroyMeHandler onDeathHandler ) : System
world FarseerPhysics.Dynamics.World
position Vector2
rotation float
onDeathHandler DestroyMeHandler
Результат System

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

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDeviceManager
Результат void

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

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

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

public altFire ( Vector2 theStartPosition, float rotation, float shotSpeed ) : void
theStartPosition Vector2
rotation float
shotSpeed float
Результат void

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

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

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