Source

zorkish / commands / InventoryCommand.hpp

/*
 * InventoryCommand.hpp
 *
 *  Created on: 11/09/2012
 *      Author: rhys
 */

#ifndef INVENTORYCOMMAND_HPP_
#define INVENTORYCOMMAND_HPP_

#include "../Command.hpp"

class InventoryCommand : public Command {
public:
    virtual ~InventoryCommand() = default;

    virtual std::string run(std::string, World&, Player& player) {
        return player.inv.list("Inventory:", "\n  * ", "You aren't carrying anything.");
    }
};

#endif /* INVENTORYCOMMAND_HPP_ */