Метод | Описание | |
---|---|---|
Fire ( ) : void | ||
IsCoolingDown ( ) : bool | ||
MissileLauncher ( Vector2 referencePosition, Vector2 muzzlePosition, Vector2 firingVelocity, double maxCoolDown, bool isPlayerGun = false ) : System | ||
MissileLauncher ( Vector2 &referencePosition, Vector2 muzzleOffset, double firingAngle, float firingSpeed, double maxCoolDownTime ) : System |
Initialize the pellet gun weapon
|
|
SetReferencePosition ( Vector2 newPosition ) : void | ||
SetReferencePosition ( int x, int y ) : void | ||
Update ( |
public MissileLauncher ( Vector2 referencePosition, Vector2 muzzlePosition, Vector2 firingVelocity, double maxCoolDown, bool isPlayerGun = false ) : System | ||
referencePosition | Vector2 | |
muzzlePosition | Vector2 | |
firingVelocity | Vector2 | |
maxCoolDown | double | |
isPlayerGun | bool | |
Результат | System |
public MissileLauncher ( Vector2 &referencePosition, Vector2 muzzleOffset, double firingAngle, float firingSpeed, double maxCoolDownTime ) : System | ||
referencePosition | Vector2 | |
muzzleOffset | Vector2 | The 2-component Vector position of the muzzle or firing location |
firingAngle | double | The angle (in radians) to fire the pellet at |
firingSpeed | float | The speed (in pixels per second) to fire the pellet |
maxCoolDownTime | double | The amount of time (in seconds) to cool down before allowing another shot to fire |
Результат | System |
public SetReferencePosition ( Vector2 newPosition ) : void | ||
newPosition | Vector2 | |
Результат | void |
public SetReferencePosition ( int x, int y ) : void | ||
x | int | |
y | int | |
Результат | void |
public Update ( |
||
gameTime | ||
Результат | void |