bp-prism-game
Version:
The BP Prism Game
47 lines (46 loc) • 1.29 kB
TypeScript
import { ImageLoadedEnum } from '../enum/image-loaded.enum';
/**
* The water service
*/
export declare class WaterService {
private gameboard;
/**
* The constructor
*/
constructor(gameboard: number[][]);
/**
* Determine the water value
* @param dx The y coordinate of the water
* @param dy The x coordinate of the water
*/
determineWaterValue(dy: number, dx: number): ImageLoadedEnum;
/**
* is the asset water
* @param value The value of the asset
*/
private isWater;
/**
* Determine the north water value
* @param dy The y coordinate of the water
* @param dx The x coordinate of the water
*/
private determineNorthWaterValue;
/**
* Determine the east water value
* @param dy The y coordinate of the water
* @param dx The x coordinate of the water
*/
private determineEastWaterValue;
/**
* Determine the west water value
* @param dy The y coordinate of the water
* @param dx The x coordinate of the water
*/
private determineWestWaterValue;
/**
* Determine the south water value
* @param dy The y coordinate of the water
* @param dx The x coordinate of the water
*/
private determineSouthWaterValue;
}