C# Class PGCGame.Ship

Inheritance: Sprite, ITimerSprite
ファイルを表示 Open project: GreatMindsRobotics/PGCGame Class Usage Examples

Public Properties

Property 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

Property Type Description
_explosionSheet Glib.XNA.SpriteLib.SpriteSheet
_hasHealthBar bool
_healthBar Glib.XNA.SpriteLib.ProgressBar
_initHealth int
_isDead bool
shipState ShipState

Private Properties

Property Type Description
Options_ScreenResolutionChanged void
Ship_Moved void

Public Methods

Method 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

Protected Methods

Method Description
FireBulletEvent ( Bullet fired ) : void
UpdateWcPos ( ) : void

Private Methods

Method Description
Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
Ship_Moved ( object sender, EventArgs e ) : void

Method Details

DrawNonAuto() public method

public DrawNonAuto ( ) : void
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FireBulletEvent() protected method

protected FireBulletEvent ( Bullet fired ) : void
fired Bullet
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsAllyWith() public method

public IsAllyWith ( PlayerType pt ) : bool
pt PlayerType
return bool

Kill() public method

public Kill ( bool brutally ) : void
brutally bool
return void

Ship() public method

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

Shoot() public method

public Shoot ( ) : void
return void

Update() public method

public Update ( GameTime gt ) : void
gt GameTime
return void

UpdateWcPos() protected method

protected UpdateWcPos ( ) : void
return void

operator() public static method

public static operator ( ) : bool
return bool

Property Details

BattleCruiserBullet public_oe static_oe property

public static Texture2D BattleCruiserBullet
return Texture2D

DistanceToNose public_oe property

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

DroneBullet public_oe static_oe property

public static Texture2D DroneBullet
return Texture2D

Explosion public_oe static_oe property

public static Texture2D Explosion
return Texture2D

FighterCarrierBullet public_oe static_oe property

public static Texture2D FighterCarrierBullet
return Texture2D

ShrinkCount public_oe property

public int ShrinkCount
return int

SpaceMine public_oe static_oe property

public static Texture2D SpaceMine
return Texture2D

Torpedo public_oe static_oe property

public static Texture2D Torpedo
return Texture2D

WorldSb public_oe property

public SpriteBatch,Microsoft.Xna.Framework.Graphics WorldSb
return Microsoft.Xna.Framework.Graphics.SpriteBatch

_explosionSheet protected_oe property

protected SpriteSheet,Glib.XNA.SpriteLib _explosionSheet
return Glib.XNA.SpriteLib.SpriteSheet

_hasHealthBar protected_oe property

protected bool _hasHealthBar
return bool

_healthBar protected_oe property

protected ProgressBar,Glib.XNA.SpriteLib _healthBar
return Glib.XNA.SpriteLib.ProgressBar

_initHealth protected_oe property

protected int _initHealth
return int

_isDead protected_oe property

protected bool _isDead
return bool

engine public_oe property

public ParticleEngine engine
return ParticleEngine

gen public_oe property

public RandomParticleGenerator gen
return RandomParticleGenerator

particles public_oe property

public Texture2D[] particles
return Texture2D[]

shipState protected_oe property

protected ShipState shipState
return ShipState