UNPKG

bp-prism-game

Version:
49 lines (48 loc) 1.13 kB
import { GameService } from '../../service/game.service'; import { GunnerClass } from '../gunner.class'; import { ObservableModel } from '../../model/observable.model'; /** * The Main Gunner Class */ export declare class MainGunnerClass extends GunnerClass { /** * The Key Down Interval */ private keyDownInterval; /** * The Space Key Down Interval */ private spaceKeyDownInterval; /** * The Key Down Timeout */ private keyDownTimeout; /** * The current Key down */ private currentKeyDown; /** * The current Key down */ private missilesFiring; /** * moves */ private moves; /** * Constructor * @param gameService The GameService * @param ctx The ctx * @param guid The guid of the alien */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number); /** * Load the Gunner Images */ private loadGunnerImages; /** * Press Key Stroke * @param event The Key event */ protected processKeyStroke(event: ObservableModel): void; }