8#ifndef GALAXY_STATE_STATE_HPP_
9#define GALAXY_STATE_STATE_HPP_
62 const std::string&
name() const noexcept;
A state to use in a finite state machine.
State & operator=(const State &)=default
Copy assignment operator.
State(const State &)=default
Copy constructor.
virtual void on_push()=0
Triggered when state is pushed onto the stack.
virtual ~State()=default
Virtual destructor.
virtual void on_pop()=0
Triggered when state is popped off the stack.
const std::string & name() const noexcept
Get state name.
State(State &&)=default
Move constructor.
State & operator=(State &&)=default
Move assignment operator.
std::string m_name
Name for debug purposes.