/** * Engine API * Civilization Engine API * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CivAction } from '../model/civAction'; import { CivUuidAction } from '../model/civUuidAction'; import { GameEngineDto } from '../model/gameEngineDto'; import { StepDto } from '../model/stepDto'; import { UuidAction } from '../model/uuidAction'; import { Configuration } from '../configuration'; export declare class EngineCommonsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Drop object * Drop resource, hut, village, unit, great person marker or culture event * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ dropObject(body: CivUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; dropObject(body: CivUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; dropObject(body: CivUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Next step * Change step to the next * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ nextStep(gameId: number, observe?: 'body', reportProgress?: boolean): Observable; nextStep(gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; nextStep(gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Previous step * Change step to the previous * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ prevStep(gameId: number, observe?: 'body', reportProgress?: boolean): Observable; prevStep(gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; prevStep(gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Reveal object * Reveal game object and show to all players * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ revealObject(body: UuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; revealObject(body: UuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; revealObject(body: UuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Roll die 1d20 * Roll die and get random value from 1 to 20 * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ rollDie1d20(gameId: number, observe?: 'body', reportProgress?: boolean): Observable; rollDie1d20(gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; rollDie1d20(gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Roll die 1d6 * Roll die and get random value from 1 to 6 * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ rollDie1d6(gameId: number, observe?: 'body', reportProgress?: boolean): Observable; rollDie1d6(gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; rollDie1d6(gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Rollback drop * Rollback droping of resource, hut, village, unit, great person marker or culture event * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ rollbackDrop(body: CivUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; rollbackDrop(body: CivUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; rollbackDrop(body: CivUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Set current civilization * Change current civilization * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ setCurrentCivilization(body: CivAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; setCurrentCivilization(body: CivAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; setCurrentCivilization(body: CivAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Set step * Change step to the value * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ setStep(body: StepDto, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; setStep(body: StepDto, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; setStep(body: StepDto, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; }