bp-prism-game
Version:
The BP Prism Game
50 lines (49 loc) • 1.24 kB
TypeScript
import { GameService } from '../service/game.service';
import { AssetClass } from '../asset/asset.class';
/**
* The Main Gunner Class
*/
export declare abstract class GunnerClass extends AssetClass {
/**
* Rotation Degrees
*/
protected rotationDegree: number;
/**
* If the missile has been fired
*/
protected missileFired: boolean;
/**
* The center of the gunner
*/
private centerPosition;
/**
* Constructor
* @param gameService The GameService
* @param ctx The ctx
* @param guid The guid of the alien
*/
constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number);
/**
* Override the move method to center the base
*/
move(): void;
/**
* Set the rotation
* @param rotation The rotation in degress
* @param isRight If the key is the right key
*/
protected setRotation(rotation: number, isRight: boolean): void;
/**
* Set the rotation of the gun to 0;
*/
resetRotation(): void;
/**
* Draw everything necessary
*/
protected draw(): void;
/**
* Animate the base
* @param now the current time
*/
animate(now?: number): void;
}