src/app/engine/room-link.ts
import {Room} from './entities/room';
/**
* Represents a unidirectional link from one room to a direction from that room, possibly resulting in navigation into another room. This
* also contains information on displaying navigational messages, attempted and failed navigation, etc. Note that target is *not* required.
*/
export class RoomLink {
origin: Room;
direction: string;
target: Room;
goMessage: string = null;
lookMessage: string = null;
constructor(origin: Room, direction: string, target: Room) {
this.origin = origin;
this.direction = direction;
this.target = target;
}
}