Property | Type | Description | |
---|---|---|---|
CheckCollision | void | ||
Draw | void | ||
Move | void | ||
SetMoveToTarget | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Disposes of this unit
|
|
GetDrawRectangle ( ) : |
||
GetLocation ( ) : Point | ||
Hit ( ) : void | ||
Projectile ( Unit parent, Damageable target, |
||
Update ( |
Updates this projectile.
|
Method | Description | |
---|---|---|
UpdateMovement ( ) : void |
Updates the movement of this projectile.
|
Method | Description | |
---|---|---|
CheckCollision ( ) : void | ||
Draw ( |
||
Move ( ) : void |
Updates the drawing position of this Projectile.
|
|
SetMoveToTarget ( int x, int y ) : void |
Set the point this Projectile has to move to. direction != direction is used for checking NaNExceptions.
|
public GetDrawRectangle ( ) : |
||
return |
public Projectile ( Unit parent, Damageable target, |
||
parent | Unit | |
target | Damageable | |
type | ||
movementSpeed | float | |
maxRange | int | |
baseDamage | int | |
return | System |
public Update ( |
||
ks | ||
ms | Microsoft.Xna.Framework.Input.MouseState | |
return | void |