UNPKG

slotify.js

Version:

A video slot game session framework for JavaScript

18 lines (17 loc) 568 B
import { IGameSession } from "./IGameSession"; import { IGameSessionConfig } from "./IGameSessionConfig"; export declare class GameSession implements IGameSession { private readonly _config; private _bet; private _credits; constructor(config: IGameSessionConfig); isBetAvailable(bet: number): boolean; getAvailableBets(): number[]; getBet(): number; getCreditsAmount(): number; setCreditsAmount(value: number): void; setBet(bet: number): void; play(): void; canPlayNextGame(): boolean; getWinningAmount(): number; }