C# Class ScrollingShooter.AlienHead

The alien head enemy logic for the alien head boss
Inheritance: ScrollingShooter.Enemy
Exibir arquivo Open project: zombiepaladin/scrolling-shooter Class Usage Examples

Public Methods

Method Description
AlienHead ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : System

Creates a new instance of an alien head

Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void

Draw the alient head on-screen

Update ( float elapsedTime ) : void

Updates the alien head

Method Details

AlienHead() public method

Creates a new instance of an alien head
public AlienHead ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : System
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
position Vector2 The position of the Dart ship in the game world
return System

Draw() public method

Draw the alient head on-screen
public Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void
elapsedTime float The in-game time between the previous and current frame
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch An already initialized SpriteBatch, ready for Draw() commands
return void

Update() public method

Updates the alien head
public Update ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
return void