Horizon
Loading...
Searching...
No Matches
tool_change_unit.hpp
1#pragma once
2#include "core/tool.hpp"
3
4namespace horizon {
5class ToolChangeUnit : public ToolBase {
6public:
7 using ToolBase::ToolBase;
8 ToolResponse begin(const ToolArgs &args) override;
9 ToolResponse update(const ToolArgs &args) override;
10 bool can_begin() override;
11
12private:
13};
14} // namespace horizon
This is what a Tool receives when the user did something.
Definition tool_pub.hpp:23
Common interface for all Tools.
Definition tool_pub.hpp:94
Definition tool_change_unit.hpp:5
bool can_begin() override
Definition tool_change_unit.cpp:11
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition tool_change_unit.cpp:16
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition tool_change_unit.cpp:49
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition tool_pub.hpp:40