Property | Type | Description | |
---|---|---|---|
gotTargets | bool | ||
initialPosition | Vector2 | ||
lastPosition | Vector2 |
Method | Description | |
---|---|---|
BasicProjectile ( Microsoft.Xna.Framework.Game g ) : System |
Basic constructor.
|
|
BasicProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, int attackPower ) : System |
Full constructor, inherited from the projectile constructor.
|
|
Update ( |
Checks for collisions with any creep, deals damage and destroys itself.
|
Method | Description | |
---|---|---|
CollisionEffect ( |
What happens when this projectile collides with a creep.
|
public BasicProjectile ( Microsoft.Xna.Framework.Game g ) : System | ||
g | Microsoft.Xna.Framework.Game | The game containing this object. |
return | System |
public BasicProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, int attackPower ) : System | ||
g | Microsoft.Xna.Framework.Game | The game containing this object. |
position | Vector2 | Initial position. |
velocity | Vector2 | Initial velocity. |
attackPower | int | How much damage will it do? |
return | System |
protected CollisionEffect ( |
||
c | The creep on which to apply the collision effect. | |
return | void |
public Update ( |
||
time | Current game time. | |
return | void |