/** * 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 { BattleExistedFrontAction } from '../model/battleExistedFrontAction'; import { BattleFrontAction } from '../model/battleFrontAction'; import { BattleNewFrontAction } from '../model/battleNewFrontAction'; import { BattleStartAction } from '../model/battleStartAction'; import { BattleWoundsAction } from '../model/battleWoundsAction'; import { CivAction } from '../model/civAction'; import { CivUuidAction } from '../model/civUuidAction'; import { GameEngineDto } from '../model/gameEngineDto'; import { Configuration } from '../configuration'; export declare class EngineBattleService { 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; /** * Add wounds * Add wounds to unit in front * @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. */ addWounds(body: BattleWoundsAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; addWounds(body: BattleWoundsAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; addWounds(body: BattleWoundsAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Attack front * Attack existed battle front and calculate unit damages * @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. */ attackFront(body: BattleExistedFrontAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; attackFront(body: BattleExistedFrontAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; attackFront(body: BattleExistedFrontAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Finish battle * Finish battle * @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. */ finishBattle(body: CivAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; finishBattle(body: CivAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; finishBattle(body: CivAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Form front * Form existed battle front without calculating unit damages * @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. */ formFront(body: BattleExistedFrontAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; formFront(body: BattleExistedFrontAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; formFront(body: BattleExistedFrontAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Kill random unit * Kill random civilization unit * @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. */ killRandomUnit(body: CivAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; killRandomUnit(body: CivAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; killRandomUnit(body: CivAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Kill unit * Kill unit in one of fronts * @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. */ killUnit(body: BattleFrontAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; killUnit(body: BattleFrontAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; killUnit(body: BattleFrontAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * New front * Create new battle front * @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. */ newFront(body: BattleNewFrontAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; newFront(body: BattleNewFrontAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; newFront(body: BattleNewFrontAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Remove wounds * Remove wounds from unit in front * @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. */ removeWounds(body: BattleWoundsAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; removeWounds(body: BattleWoundsAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; removeWounds(body: BattleWoundsAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Return unit * Take battle hands or fronts unit and return to civilization board * @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. */ returnUnit(body: CivUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; returnUnit(body: CivUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; returnUnit(body: CivUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Reveal units * Reveal civilization hands units * @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. */ revealUnits(body: CivAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; revealUnits(body: CivAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; revealUnits(body: CivAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Revive unit * Revive unit in one of fronts * @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. */ reviveUnit(body: CivUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; reviveUnit(body: CivUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; reviveUnit(body: CivUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Start battle * Start new battle between 2 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. */ startBattle(body: BattleStartAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; startBattle(body: BattleStartAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; startBattle(body: BattleStartAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; }