feat(io,command): quests command, QuestText, per-turn quest tick

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-31 22:31:33 +02:00
parent a3600eadd7
commit 310d476264
6 changed files with 100 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ public class Game {
}
private void publishHud() {
QuestEngine.tick(ctx);
ctx.getIo().setHud(new Hud(
ctx.getPlayer().getCurrentRoom().getName(),
ctx.getPlayer().getGold(),
@@ -70,6 +71,7 @@ public class Game {
ctx.getPlayer().getVisitedRoomIds(),
ctx.getPlayer().getCurrentRoom());
ctx.getIo().setMap(map);
ctx.getIo().setQuests(QuestEngine.viewOf(ctx));
}
/**