UNPKG

bp-prism-game

Version:
30 lines (29 loc) 767 B
import { GameService } from '../../service/game.service'; import { CharacterClass } from '../character.class'; /** * The Number Class */ export declare class NumberClass extends CharacterClass { /** * Constructor * @param gameService The GameService * @param ctx The ctx */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D); /** * Load the Number Images */ private loadNumberImages; /** * Draw the Number * @param inputNumber the number to display * @param padNumbers if the numbers should be padded */ setNumber(inputNumber: number, padNumbers?: boolean): void; /** * Pad the points * * @param points The points to pad */ private padPoints; }