C# Class Project_Starfighter.ActionScreen

Inheritance: GameScreen
显示文件 Open project: csce3513/Team15 Class Usage Examples

Public Properties

Property Type Description
desiredHeight int
desiredWidth int
hud HudValues
isBossActive bool
isBossDefeated bool
isOutOfLives bool
isPlayerHitTwiceByEnemy2 bool
isWave1Over bool
isWave2Over bool
leftLimitShipPosition int
lowerLimitShipPosition int
passScore int
pixelsToMoveBackgroundPosition int
pixelsToMoveInXPosition int
pixelsToMoveInYPosition int
rightLimitShipPosition int
upperLimitShipPosition int
youFiredSoundInstance Microsoft.Xna.Framework.Audio.SoundEffectInstance

Public Methods

Method Description
ActionScreen ( ) : System
ActionScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
ActionScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D background, Microsoft.Xna.Framework.Content.ContentManager content ) : System
CheckEndOfWave2 ( ) : void
CheckEndofWave1 ( ) : void
Draw ( GameTime gameTime ) : void
Intersects ( Rectangle rectA, Rectangle rectB ) : bool
StartNewWave ( ) : void
StartSecondWave ( ) : void
Update ( GameTime gameTime ) : void
newGame ( ) : void

Protected Methods

Method Description
CheckBulletHits ( ) : void
CheckOtherKeys ( KeyboardState ksKeys ) : void
CheckPlayerHits ( ) : void
DestroyBoss ( ) : void
DestroyEnemy ( int iEnemy ) : void
DestroyEnemy2 ( int iEnemy ) : void
FireBullet ( int iVerticalOffset ) : void
GenerateEnemies1 ( ) : void
GenerateEnemies2 ( ) : void
RemoveBullet ( int iBullet ) : void
UpdateAmmo ( GameTime gameTime ) : void

Private Methods

Method Description
StartBoss ( ) : void
UpdateLives ( ) : void

Method Details

ActionScreen() public method

public ActionScreen ( ) : System
return System

ActionScreen() public method

public ActionScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return System

ActionScreen() public method

public ActionScreen ( Microsoft.Xna.Framework.Game game, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D background, Microsoft.Xna.Framework.Content.ContentManager content ) : System
game Microsoft.Xna.Framework.Game
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
background Microsoft.Xna.Framework.Graphics.Texture2D
content Microsoft.Xna.Framework.Content.ContentManager
return System

CheckBulletHits() protected method

protected CheckBulletHits ( ) : void
return void

CheckEndOfWave2() public method

public CheckEndOfWave2 ( ) : void
return void

CheckEndofWave1() public method

public CheckEndofWave1 ( ) : void
return void

CheckOtherKeys() protected method

protected CheckOtherKeys ( KeyboardState ksKeys ) : void
ksKeys Microsoft.Xna.Framework.Input.KeyboardState
return void

CheckPlayerHits() protected method

protected CheckPlayerHits ( ) : void
return void

DestroyBoss() protected method

protected DestroyBoss ( ) : void
return void

DestroyEnemy() protected method

protected DestroyEnemy ( int iEnemy ) : void
iEnemy int
return void

DestroyEnemy2() protected method

protected DestroyEnemy2 ( int iEnemy ) : void
iEnemy int
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

FireBullet() protected method

protected FireBullet ( int iVerticalOffset ) : void
iVerticalOffset int
return void

GenerateEnemies1() protected method

protected GenerateEnemies1 ( ) : void
return void

GenerateEnemies2() protected method

protected GenerateEnemies2 ( ) : void
return void

Intersects() public method

public Intersects ( Rectangle rectA, Rectangle rectB ) : bool
rectA Microsoft.Xna.Framework.Rectangle
rectB Microsoft.Xna.Framework.Rectangle
return bool

RemoveBullet() protected method

protected RemoveBullet ( int iBullet ) : void
iBullet int
return void

StartNewWave() public method

public StartNewWave ( ) : void
return void

StartSecondWave() public method

public StartSecondWave ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

UpdateAmmo() protected method

protected UpdateAmmo ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

newGame() public method

public newGame ( ) : void
return void

Property Details

desiredHeight public_oe property

public int desiredHeight
return int

desiredWidth public_oe property

public int desiredWidth
return int

hud public_oe property

public HudValues,Project_Starfighter hud
return HudValues

isBossActive public_oe property

public bool isBossActive
return bool

isBossDefeated public_oe property

public bool isBossDefeated
return bool

isOutOfLives public_oe property

public bool isOutOfLives
return bool

isPlayerHitTwiceByEnemy2 public_oe property

public bool isPlayerHitTwiceByEnemy2
return bool

isWave1Over public_oe property

public bool isWave1Over
return bool

isWave2Over public_oe property

public bool isWave2Over
return bool

leftLimitShipPosition public_oe property

public int leftLimitShipPosition
return int

lowerLimitShipPosition public_oe property

public int lowerLimitShipPosition
return int

passScore public_oe property

public int passScore
return int

pixelsToMoveBackgroundPosition public_oe property

public int pixelsToMoveBackgroundPosition
return int

pixelsToMoveInXPosition public_oe property

public int pixelsToMoveInXPosition
return int

pixelsToMoveInYPosition public_oe property

public int pixelsToMoveInYPosition
return int

rightLimitShipPosition public_oe property

public int rightLimitShipPosition
return int

upperLimitShipPosition public_oe property

public int upperLimitShipPosition
return int

youFiredSoundInstance public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio youFiredSoundInstance
return Microsoft.Xna.Framework.Audio.SoundEffectInstance