001package myhw2.data;
002
003import myhw2.command.Command;
004
005/**
006 * Implementation of command to clear the inventory.
007 * @see Data
008 */
009final class CmdClear implements Command {
010        private InventorySet inventory;
011        CmdClear(InventorySet inventory) {
012                this.inventory = inventory;
013        }
014        public boolean run() {
015                inventory.clear();
016                return true;
017        }
018}