bp-prism-game
Version:
The BP Prism Game
77 lines (76 loc) • 1.79 kB
TypeScript
import { GameService } from '../service/game.service';
import { AssetClass } from '../asset/asset.class';
import { MissileLaunchModel } from './model/missile-launch.model';
/**
* The Missile Class
*/
export declare class MissileClass extends AssetClass {
/**
* The rotation Degress
*/
private rotationDegree;
/**
* The launchPosition
*/
private launchPosition;
/**
* The originalPosition
*/
private originalPosition;
/**
* The current missile
*/
private currentMissile;
/**
* moves
*/
private moves;
/**
* Constructor
* @param gameService The GameService
* @param ctx The ctx
* @param guid The guid of the misssle
*/
constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number);
/**
* Load the Gunner Images
*/
private loadMissileImages;
/**
* Set the Missile Color
* @param index The index of the color
*/
setMissileColor(index: number): void;
/**
* Un Set the Missile Color
*/
unsetMissileColor(): void;
/**
* Add the shadow
* @param position The position of the shadow
*/
private addMissileShadow;
/**
* Draw evenything necessary
*/
protected draw(): void;
/**
* Set the rotation degree
* @param rotationDegree The rotation degress
*/
setMissileData(data: MissileLaunchModel): void;
/**
* Round to the nearest 100
* @param asset The asset to round
*/
private roundCoordinates;
/**
* Convert the missile position based on the angle
*/
private convertMissilePosition;
/**
* Animate the missile
* @param now the current time
*/
animate(now?: number): void;
}