package thb.jeanluc.adventure.command.impl;

import thb.jeanluc.adventure.command.Command;
import thb.jeanluc.adventure.game.GameContext;
import thb.jeanluc.adventure.game.QuestEngine;

import java.util.List;

/** Shows the active and completed quests. Usage: {@code quests}. */
public class QuestsCommand implements Command {

    @Override
    public void execute(GameContext ctx, List<String> args) {
        ctx.getIo().showQuests(QuestEngine.viewOf(ctx));
    }

    @Override
    public String help() {
        return "quests  -  show your active and completed quests (alias: log, journal)";
    }
}
