示例#1
0
/**
 * \brief Constructor.
 * \param hero The hero controlled by this state.
 * \param item The equipment item to use.
 */
Hero::UsingItemState::UsingItemState(
    Hero& hero,
    EquipmentItem& item):

  State(hero, "using item"),
  item_usage(hero.get_game(), item) {

}