Class SpawnRecipeCommands
java.lang.Object
com.csse3200.game.ui.terminal.commands.SpawnRecipeCommands
- All Implemented Interfaces:
Command
A command for spawning recipes into the players inventory.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SpawnRecipeCommands
public SpawnRecipeCommands()
-
-
Method Details
-
action
Processes the 'spawn' command and spawns the specified meal if the argument is valid. If the player's inventory is not empty, the current item is removed before adding the new one.
-