C# Class ScrollingShooter.BlimpShotgun

Represents a bullet that is shot when the shotgun powerup is active
Inheritance: ScrollingShooter.Projectile
Afficher le fichier Open project: zombiepaladin/scrolling-shooter Class Usage Examples

Méthodes publiques

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

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

Draw() public méthode

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