C# Class MyPolarBear.GameObjects.Projectile

Inheritance: System.Entity
Datei anzeigen Open project: sgdc/sgdc-old Class Usage Examples

Public Properties

Property Type Description
Shooter PolarBear

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
LoadContent ( ) : void
Projectile ( Vector2 position, float speed, Vector2 direction, PolarBear type, PolarBear shooter ) : System
Update ( GameTime gameTime ) : void

Private Methods

Method Description
hitEntity ( System.Entity entity ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

LoadContent() public method

public LoadContent ( ) : void
return void

Projectile() public method

public Projectile ( Vector2 position, float speed, Vector2 direction, PolarBear type, PolarBear shooter ) : System
position Vector2
speed float
direction Vector2
type PolarBear
shooter PolarBear
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

Shooter public_oe property

public PolarBear,MyPolarBear.GameObjects Shooter
return PolarBear