add ability to move from room to room.

This commit is contained in:
2021-06-01 16:06:18 -07:00
parent 8f6d7e4db4
commit 08ee3d1b5d
8 changed files with 150 additions and 45 deletions

View File

@ -3,13 +3,13 @@
* goes on.
*/
import { Effect, Item, VesselProperties } from "./types.ts";
import Vessel from "./Vessel.ts";
import { Effect, Item, EntityProperties } from "./types.ts";
import Entity from "./Entity.ts";
// The Player is a type of "Vessel" which is a generic object that can have effects
// The Player is a type of "entity" which is a generic object that can have effects
// and items.
export default class Player extends Vessel<VesselProperties> {
constructor(items: Item[] = [], _effects: Effect<VesselProperties>[] = []) {
export default class Player extends Entity<EntityProperties> {
constructor(items: Item[] = [], _effects: Effect<EntityProperties>[] = []) {
super({ items }, { effects: [] });
}