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

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

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

Свойство Тип Описание
Visible bool
mDirection Vector2
mposition Vector2
mrotation float
mworld FarseerPhysics.Dynamics.World
ondeathHandler DestroyMeHandler
removed bool

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

Метод Описание
Draw ( SpriteBatch theSpriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics, String textureName, String spriteSheet, int heightScale, int widthScale ) : void
Update ( GameTime gameTime, Matrix _view ) : void
fire ( Vector2 position, 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

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

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

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

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

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

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

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

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

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

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

public Vector2 mDirection
Результат Vector2

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

public Vector2 mposition
Результат Vector2

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

public float mrotation
Результат float

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

public World,FarseerPhysics.Dynamics mworld
Результат FarseerPhysics.Dynamics.World

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

public DestroyMeHandler ondeathHandler
Результат DestroyMeHandler

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

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