C# Класс Manic_Shooter.Classes.MissileLauncher

Наследование: IWeapon
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( GameTime gameTime ) : void

Описание методов

Fire() публичный Метод

public Fire ( ) : void
Результат void

IsCoolingDown() публичный Метод

public IsCoolingDown ( ) : bool
Результат bool

MissileLauncher() публичный Метод

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

MissileLauncher() публичный Метод

Initialize the pellet gun weapon
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

SetReferencePosition() публичный Метод

public SetReferencePosition ( Vector2 newPosition ) : void
newPosition Vector2
Результат void

SetReferencePosition() публичный Метод

public SetReferencePosition ( int x, int y ) : void
x int
y int
Результат void

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void