Method | Description | |
---|---|---|
Bullet ( Vector2 location, int speed, float angle, int range, int damage, |
The constructor assumes that you are generating the bullet from a given location at a given velocity.
|
|
Draw ( |
Draws the bullet... yes it does.
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager, String type ) : void |
Loads the bullet.
|
|
Update ( |
May the bullet update evermore... or at least until it reaches the edge of the screen...
|
Method | Description | |
---|---|---|
setDirection ( ) : void |
Sets the direction of the sprite based on the current velocity.
|
public Bullet ( Vector2 location, int speed, float angle, int range, int damage, |
||
location | Vector2 | The initial position for the bullet. |
speed | int | |
angle | float | |
range | int | |
damage | int | |
gameReference | ||
return | System |
public Draw ( |
||
canvas | The thingy onto which the bullet is drawn. | |
return | void |
public Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager, String type ) : void | ||
contentManager | Microsoft.Xna.Framework.Content.ContentManager | Using this content manager. |
type | String | |
return | void |
public Update ( |
||
gameTime | The amount of time since last calling the Update function. | |
gameReference | The reference to life the universe and everything. | |
return | void |