C# Class ScrollingShooter.BlimpShotgun

Represents a bullet that is shot when the shotgun powerup is active
Inheritance: ScrollingShooter.Projectile
ファイルを表示 Open project: zombiepaladin/scrolling-shooter Class Usage Examples

Public Methods

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

Creates a new shotgun bullet

Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void

Draws a shotgun bullet and rotates it in the direction it is traveling

Method Details

BlimpShotgun() public method

Creates a new shotgun bullet
public BlimpShotgun ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position, BulletDirection bulletDirection ) : System
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load content from
position Vector2 The starting position of the bullet
bulletDirection BulletDirection
return System

Draw() public method

Draws a shotgun bullet and rotates it in the direction it is traveling
public Draw ( float elapsedTime, SpriteBatch spriteBatch ) : void
elapsedTime float The elapsed time
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch An already-initialized spritebatch, ready for Draw() commands
return void