Horizon
src
core
tool_change_unit.hpp
1
#pragma once
2
#include "core.hpp"
3
4
namespace
horizon {
5
class
ToolChangeUnit
:
public
ToolBase
{
6
public
:
7
ToolChangeUnit
(
Core
*c, ToolID tid);
8
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
9
ToolResponse
update
(
const
ToolArgs
&args)
override
;
10
bool
can_begin
()
override
;
11
12
private
:
13
};
14
}
// namespace horizon
horizon::ToolChangeUnit
Definition:
tool_change_unit.hpp:5
horizon::Core
Where Tools and and documents meet.
Definition:
core.hpp:240
horizon::ToolChangeUnit::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_change_unit.cpp:47
horizon::ToolBase
Common interface for all Tools.
Definition:
core.hpp:141
horizon::ToolChangeUnit::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_change_unit.cpp:18
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
core.hpp:52
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
core.hpp:26
horizon::ToolChangeUnit::can_begin
bool can_begin() override
Definition:
tool_change_unit.cpp:13
Generated by
1.8.16