Files
Stand/Stand/CommandHistoryAction.cpp
expvintl ce19babcf4 init
2024-10-16 11:20:42 +08:00

25 lines
729 B
C++

#include "CommandHistoryAction.hpp"
#include "CommandHistoricPlayer.hpp"
#include "FiberPool.hpp"
#include "RemoteGamerConnector.hpp"
#include "Util.hpp"
namespace Stand
{
CommandHistoryAction::CommandHistoryAction(CommandList* const parent, Label&& menu_name, std::vector<CommandName>&& command_names, Label&& help_text)
: CommandAction(parent, std::move(menu_name), std::move(command_names), std::move(help_text))
{
this->flags |= CMDFLAG_TEMPORARY;
}
const CommandHistoricPlayer* CommandHistoryAction::getHpCmd() const noexcept
{
return resolveParent(COMMAND_LIST_HISTORICPLAYER)->as<CommandHistoricPlayer>();
}
HistoricPlayer* CommandHistoryAction::getHp() const noexcept
{
return getHpCmd()->player;
}
}