C# 클래스 ScrollingShooter.BlimpShotgun

Represents a bullet that is shot when the shotgun powerup is active
상속: ScrollingShooter.Projectile
파일 보기 프로젝트 열기: zombiepaladin/scrolling-shooter 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

BlimpShotgun() 공개 메소드

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
리턴 System

Draw() 공개 메소드

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
리턴 void