Property | Type | Description | |
---|---|---|---|
timeToLive | int | ||
velocity | Vector2 |
Method | Description | |
---|---|---|
Draw ( |
Draws the projectile.
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void |
Loads the projectile object.
|
|
Projectile ( Vector2 location, |
A pass through constructor for the Entity class
|
|
Update ( |
Updates the projectile each frame.
|
public Draw ( |
||
canvas | The spritebatch onto which to draw the projectile. | |
return | void |
public Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void | ||
contentManager | Microsoft.Xna.Framework.Content.ContentManager | The content manager for loading resources. |
return | void |
public Projectile ( Vector2 location, |
||
location | Vector2 | The location of the entity relative to global space. Note that the reference point of the entity is the center of the bounding box. |
drawBox | The box to which the sprite will be drawn. Only the width and height will be used. | |
boundingBox | The bounding box of the entity relative to the upper right hand corner of the entity. | |
return | System |
public Update ( |
||
gameTime | The amount of time since the last call of Update. | |
gameReference | A reference to the entire game. | |
return | void |