C# Class Project_Starfighter.ActionScreen

Inheritance: GameScreen
Afficher le fichier Open project: csce3513/Team15 Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
StartBoss ( ) : void
UpdateLives ( ) : void

Method Details

ActionScreen() public méthode

public ActionScreen ( ) : System
Résultat System

ActionScreen() public méthode

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

ActionScreen() public méthode

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
Résultat System

CheckBulletHits() protected méthode

protected CheckBulletHits ( ) : void
Résultat void

CheckEndOfWave2() public méthode

public CheckEndOfWave2 ( ) : void
Résultat void

CheckEndofWave1() public méthode

public CheckEndofWave1 ( ) : void
Résultat void

CheckOtherKeys() protected méthode

protected CheckOtherKeys ( KeyboardState ksKeys ) : void
ksKeys Microsoft.Xna.Framework.Input.KeyboardState
Résultat void

CheckPlayerHits() protected méthode

protected CheckPlayerHits ( ) : void
Résultat void

DestroyBoss() protected méthode

protected DestroyBoss ( ) : void
Résultat void

DestroyEnemy() protected méthode

protected DestroyEnemy ( int iEnemy ) : void
iEnemy int
Résultat void

DestroyEnemy2() protected méthode

protected DestroyEnemy2 ( int iEnemy ) : void
iEnemy int
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

FireBullet() protected méthode

protected FireBullet ( int iVerticalOffset ) : void
iVerticalOffset int
Résultat void

GenerateEnemies1() protected méthode

protected GenerateEnemies1 ( ) : void
Résultat void

GenerateEnemies2() protected méthode

protected GenerateEnemies2 ( ) : void
Résultat void

Intersects() public méthode

public Intersects ( Rectangle rectA, Rectangle rectB ) : bool
rectA Microsoft.Xna.Framework.Rectangle
rectB Microsoft.Xna.Framework.Rectangle
Résultat bool

RemoveBullet() protected méthode

protected RemoveBullet ( int iBullet ) : void
iBullet int
Résultat void

StartNewWave() public méthode

public StartNewWave ( ) : void
Résultat void

StartSecondWave() public méthode

public StartSecondWave ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateAmmo() protected méthode

protected UpdateAmmo ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

newGame() public méthode

public newGame ( ) : void
Résultat void

Property Details

desiredHeight public_oe property

public int desiredHeight
Résultat int

desiredWidth public_oe property

public int desiredWidth
Résultat int

hud public_oe property

public HudValues,Project_Starfighter hud
Résultat HudValues

isBossActive public_oe property

public bool isBossActive
Résultat bool

isBossDefeated public_oe property

public bool isBossDefeated
Résultat bool

isOutOfLives public_oe property

public bool isOutOfLives
Résultat bool

isPlayerHitTwiceByEnemy2 public_oe property

public bool isPlayerHitTwiceByEnemy2
Résultat bool

isWave1Over public_oe property

public bool isWave1Over
Résultat bool

isWave2Over public_oe property

public bool isWave2Over
Résultat bool

leftLimitShipPosition public_oe property

public int leftLimitShipPosition
Résultat int

lowerLimitShipPosition public_oe property

public int lowerLimitShipPosition
Résultat int

passScore public_oe property

public int passScore
Résultat int

pixelsToMoveBackgroundPosition public_oe property

public int pixelsToMoveBackgroundPosition
Résultat int

pixelsToMoveInXPosition public_oe property

public int pixelsToMoveInXPosition
Résultat int

pixelsToMoveInYPosition public_oe property

public int pixelsToMoveInYPosition
Résultat int

rightLimitShipPosition public_oe property

public int rightLimitShipPosition
Résultat int

upperLimitShipPosition public_oe property

public int upperLimitShipPosition
Résultat int

youFiredSoundInstance public_oe property

public SoundEffectInstance,Microsoft.Xna.Framework.Audio youFiredSoundInstance
Résultat Microsoft.Xna.Framework.Audio.SoundEffectInstance