C# Class ScrollingShooter.RightGun

The RightGun for the Blimp Boss
Inheritance: ScrollingShooter.Boss
Exibir arquivo Open project: zombiepaladin/scrolling-shooter Class Usage Examples

Public Methods

Method Description
Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void

Draw the RightGun on-screen

RightGun ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Blimp ship ) : System

Creates a new RightGun

ScrollWithMap ( float elapsedTime ) : void

Scrolls the object with the map

Update ( float elapsedTime ) : void

Updates the RightGun

Method Details

Draw() public method

Draw the RightGun 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

RightGun() public method

Creates a new RightGun
public RightGun ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Blimp ship ) : System
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
ship Blimp
return System

ScrollWithMap() public method

Scrolls the object with the map
public ScrollWithMap ( float elapsedTime ) : void
elapsedTime float The in-game time between the previous and current frame
return void

Update() public method

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