C# Class PGCGame.Ship

Inheritance: Sprite, ITimerSprite
Afficher le fichier Open project: GreatMindsRobotics/PGCGame Class Usage Examples

Méthodes publiques

Свойство Type Description
BattleCruiserBullet Texture2D
DistanceToNose float
DroneBullet Texture2D
Explosion Texture2D
FighterCarrierBullet Texture2D
ShrinkCount int
SpaceMine Texture2D
Torpedo Texture2D
WorldSb Microsoft.Xna.Framework.Graphics.SpriteBatch
engine ParticleEngine
gen RandomParticleGenerator
particles Texture2D[]

Protected Properties

Свойство Type Description
_explosionSheet Glib.XNA.SpriteLib.SpriteSheet
_hasHealthBar bool
_healthBar Glib.XNA.SpriteLib.ProgressBar
_initHealth int
_isDead bool
shipState ShipState

Private Properties

Свойство Type Description
Options_ScreenResolutionChanged void
Ship_Moved void

Méthodes publiques

Méthode Description
DrawNonAuto ( ) : void
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsAllyWith ( PlayerType pt ) : bool
Kill ( bool brutally ) : void
Ship ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch ) : System
Shoot ( ) : void
Update ( GameTime gt ) : void
operator ( ) : bool

Méthodes protégées

Méthode Description
FireBulletEvent ( Bullet fired ) : void
UpdateWcPos ( ) : void

Private Methods

Méthode Description
Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
Ship_Moved ( object sender, EventArgs e ) : void

Method Details

DrawNonAuto() public méthode

public DrawNonAuto ( ) : void
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

FireBulletEvent() protected méthode

protected FireBulletEvent ( Bullet fired ) : void
fired Bullet
Résultat void

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsAllyWith() public méthode

public IsAllyWith ( PlayerType pt ) : bool
pt PlayerType
Résultat bool

Kill() public méthode

public Kill ( bool brutally ) : void
brutally bool
Résultat void

Ship() public méthode

public Ship ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch ) : System
texture Texture2D
location Vector2
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat System

Shoot() public méthode

public Shoot ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gt ) : void
gt GameTime
Résultat void

UpdateWcPos() protected méthode

protected UpdateWcPos ( ) : void
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

BattleCruiserBullet public_oe static_oe property

public static Texture2D BattleCruiserBullet
Résultat Texture2D

DistanceToNose public_oe property

The percentage of the total height of the ship that the nose is from the center.
public float DistanceToNose
Résultat float

DroneBullet public_oe static_oe property

public static Texture2D DroneBullet
Résultat Texture2D

Explosion public_oe static_oe property

public static Texture2D Explosion
Résultat Texture2D

FighterCarrierBullet public_oe static_oe property

public static Texture2D FighterCarrierBullet
Résultat Texture2D

ShrinkCount public_oe property

public int ShrinkCount
Résultat int

SpaceMine public_oe static_oe property

public static Texture2D SpaceMine
Résultat Texture2D

Torpedo public_oe static_oe property

public static Texture2D Torpedo
Résultat Texture2D

WorldSb public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics WorldSb
Résultat Microsoft.Xna.Framework.Graphics.SpriteBatch

_explosionSheet protected_oe property

protected SpriteSheet,Glib.XNA.SpriteLib _explosionSheet
Résultat Glib.XNA.SpriteLib.SpriteSheet

_hasHealthBar protected_oe property

protected bool _hasHealthBar
Résultat bool

_healthBar protected_oe property

protected ProgressBar,Glib.XNA.SpriteLib _healthBar
Résultat Glib.XNA.SpriteLib.ProgressBar

_initHealth protected_oe property

protected int _initHealth
Résultat int

_isDead protected_oe property

protected bool _isDead
Résultat bool

engine public_oe property

public ParticleEngine engine
Résultat ParticleEngine

gen public_oe property

public RandomParticleGenerator gen
Résultat RandomParticleGenerator

particles public_oe property

public Texture2D[] particles
Résultat Texture2D[]

shipState protected_oe property

protected ShipState shipState
Résultat ShipState