UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

38 lines 1.05 kB
/** * @template A * A bid represents a tactical action. As such, it is atomic, either all required resources are allocated, or none. * * @author Alex Goldring * @copyright Company Named Limited (c) 2025 */ export class ResourceAllocationBid<A> { /** * @template A * @param {ResourceAllocation} allocation * @param {number} value */ constructor(allocation: ResourceAllocation, value: number); /** * * @type {ResourceAllocation} */ allocation: ResourceAllocation; /** * Perceived value of a bid from perspective of the bidder. Must be normalized to value between 0 and 1 * @type {number} */ value: number; /** * Represents action * @readonly * @type {ActionSequence<A>} */ readonly actions: ActionSequence<A_1>; /** * Weight assigned to the bid, this is dictated externally * @type {number} */ weight: number; } import { ActionSequence } from "./ActionSequence.js"; //# sourceMappingURL=ResourceAllocationBid.d.ts.map