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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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