This commit is contained in:
Tony Garnock-Jones 2021-02-22 20:47:21 +01:00
parent eb24199c8b
commit 109441785f
1 changed files with 1 additions and 5 deletions

View File

@ -44,10 +44,6 @@ export class Actor {
return this.exitReason === null;
}
stop(t: Turn) {
this.terminateWith(t, { ok: true });
}
terminateWith(t: Turn, reason: Exclude<ExitReason, null>) {
if (this.alive) {
this.exitReason = reason;
@ -115,7 +111,7 @@ export class Turn {
quit(): void {
const actor = this._ensureActor("quit");
this.localActions.push(t => actor.stop(t));
this.localActions.push(t => actor.terminateWith(t, { ok: true }));
}
assert(location: Ref<Entity>, assertion: Assertion): Handle {