docs(command): update UseCommand javadoc for the combination form

This commit is contained in:
2026-06-01 17:32:58 +02:00
parent 9152aded4b
commit 8257eb0c02

View File

@@ -9,9 +9,10 @@ import java.util.List;
import java.util.Optional; import java.util.Optional;
/** /**
* Invokes the item-specific {@link Item#use(GameContext)} action. The * With one argument, invokes the item-specific {@link Item#use(GameContext)}
* item must either be in the player's inventory or in the current room. * action; the item must be in the player's inventory or the current room.
* Usage: {@code use <item-id>}. * With two arguments ({@code use <item> on <item>}), delegates to the
* combination engine. Usage: {@code use <item>} or {@code use <item> on <item>}.
*/ */
public class UseCommand implements Command { public class UseCommand implements Command {