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

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

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

Свойство Тип Описание
BASE_SHIP_RAYCAST_LENGTH float
altFireQuantity int
altShots List
currentFireState fireState
currentNegativeState negativeState
currentPassiveState passiveState
currentSecondaryFire secondaryFire
damage int
mShipParticles DPSF.ParticleSystems.ShipParticleSystem
sheilds int
shotSpeed float
shotsPerSec int
world FarseerPhysics.Dynamics.World

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

Метод Описание
Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName, GraphicsDeviceManager graphics ) : void
Ship ( SoundHandler player, float power, float sheildStrength ) : System
Ship ( World world, Vector2 position ) : System
altFire ( ) : void
fire ( ) : void
pauseThrustSound ( ) : void
playThrustSound ( ) : void
setPlayer ( SoundHandler player ) : void
thrust ( GameTime gameTime, Matrix _view ) : void
updateAltShot ( GameTime gameTime, Matrix _view ) : void
updateNegativeShipState ( GameTime gameTime, Matrix _view ) : void
updatePassiveShipState ( GameTime gameTime, Matrix _view ) : void
updateShot ( GameTime gameTime, Matrix _view ) : void

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

Метод Описание
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool
removeAltShot ( AlternateShot shotToRemove ) : void
removeShot ( Shot shotToRemove ) : void

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

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

public Draw ( SpriteBatch theSpriteBatch, FarseerPhysics.DebugViewXNA debugView, Matrix projection, Matrix view ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
debugView FarseerPhysics.DebugViewXNA
projection Matrix
view Matrix
Результат void

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

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

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

public Ship ( SoundHandler player, float power, float sheildStrength ) : System
player SoundHandler
power float
sheildStrength float
Результат System

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

public Ship ( World world, Vector2 position ) : System
world FarseerPhysics.Dynamics.World
position Vector2
Результат System

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

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

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

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

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

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

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

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

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

public setPlayer ( SoundHandler player ) : void
player SoundHandler
Результат void

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

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

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

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

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

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

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

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

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

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

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

BASE_SHIP_RAYCAST_LENGTH публичное статическое свойство

public static float BASE_SHIP_RAYCAST_LENGTH
Результат float

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

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

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

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

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

public fireState currentFireState
Результат fireState

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

public negativeState currentNegativeState
Результат negativeState

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

public passiveState currentPassiveState
Результат passiveState

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

public secondaryFire currentSecondaryFire
Результат secondaryFire

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

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

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

public ShipParticleSystem,DPSF.ParticleSystems mShipParticles
Результат DPSF.ParticleSystems.ShipParticleSystem

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

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

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

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

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

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

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

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