UNPKG

spatial-controls

Version:

Configurable 3D movement controls.

27 lines (26 loc) 673 B
import { Direction } from "../core/Direction.js"; import { MovementState } from "../managers/MovementState.js"; import { Strategy } from "./Strategy.js"; /** * A movement strategy. * * @group Strategies */ export declare class MovementStrategy implements Strategy { /** * A movement state. */ private readonly movementState; /** * A direction. */ private readonly direction; /** * Constructs a new movement strategy. * * @param movementState - A movement state. * @param direction - A direction. */ constructor(movementState: MovementState, direction: Direction); execute(flag: boolean): void; }