agents-flow
Version:
Framework for multi-agent interactive fiction videogame.
26 lines • 890 B
TypeScript
import { Agent } from "./agent";
export declare class Location {
private _name;
private _connections;
private _agents;
constructor(name: any);
get name(): string;
get connections(): Location[];
get agents(): Agent[];
append(agents: Agent[]): void;
remove(agent: Agent): void;
has(agent: Agent): boolean;
connectWith(location: Location): void;
isConnected(location: Location): boolean;
static join(first: Location, second: Location): void;
}
export declare class MapStructure {
private _locations;
private _ubications;
constructor(locations: Location[]);
getLocation(location: string): Location;
getUbication(agent: Agent): Location;
move(agent: Agent, destination: Location): boolean;
areInTheSameLocation(first: Agent, second: Agent): boolean;
}
//# sourceMappingURL=location.d.ts.map