boardcast
Version:
Animation library for tabletop game rules on hex boards with CLI tools and game extensions
43 lines • 1.59 kB
TypeScript
/**
* Lancer movement mechanics for Boardcast
*/
import { BoardcastHexBoard } from 'boardcast';
import type { MovementRange } from './types.js';
export declare class LancerMovement {
private board;
constructor(board: BoardcastHexBoard);
/**
* Calculate movement range for a mech based on its speed
* @param centerQ - Starting q coordinate
* @param centerR - Starting r coordinate
* @param speed - Mech's speed value
* @returns Movement range with normal move and boost options
*/
calculateMovementRange(centerQ: number, centerR: number, speed: number): MovementRange;
/**
* Show movement range with different colors for normal move vs boost
* @param centerQ - Starting q coordinate
* @param centerR - Starting r coordinate
* @param speed - Mech's speed value
*/
showMovementRange(centerQ: number, centerR: number, speed: number): void;
/**
* Apply difficult terrain movement penalties
* @param hexes - Array of hex coordinates that are difficult terrain
* @param color - Color to highlight difficult terrain (default brown)
*/
showDifficultTerrain(hexes: Array<{
q: number;
r: number;
}>, color?: string): void;
/**
* Apply dangerous terrain effects
* @param hexes - Array of hex coordinates that are dangerous terrain
* @param color - Color to highlight dangerous terrain (default red)
*/
showDangerousTerrain(hexes: Array<{
q: number;
r: number;
}>, color?: string): void;
}
//# sourceMappingURL=movement.d.ts.map