Horizon
src
core
tools
tool_update_all_planes.hpp
1
#pragma once
2
#include "core/tool.hpp"
3
4
namespace
horizon {
5
6
class
ToolUpdateAllPlanes
:
public
ToolBase
{
7
public
:
8
using
ToolBase::ToolBase;
9
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
10
ToolResponse
update
(
const
ToolArgs
&args)
override
;
11
bool
can_begin
()
override
;
12
13
private
:
14
};
15
}
// namespace horizon
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
tool.hpp:23
horizon::ToolBase
Common interface for all Tools.
Definition:
tool.hpp:121
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
tool.hpp:42
horizon::ToolUpdateAllPlanes
Definition:
tool_update_all_planes.hpp:6
horizon::ToolUpdateAllPlanes::can_begin
bool can_begin() override
Definition:
tool_update_all_planes.cpp:8
horizon::ToolUpdateAllPlanes::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_update_all_planes.cpp:29
horizon::ToolUpdateAllPlanes::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_update_all_planes.cpp:13
Generated by
1.9.1