#include <synced_commands.hpp>
Public Types | |
| typedef std::function< void(const std::string &)> | error_handler_function |
Public Member Functions | |
| action_spectator ()=default | |
| action_spectator (error_handler_function eh) | |
| virtual | ~action_spectator ()=default |
| virtual void | error (const std::string &message) |
| Called when synced_context::run received nonsensial data based on the current gamestate. More... | |
Public Attributes | |
| error_handler_function | eh_ |
Definition at line 25 of file synced_commands.hpp.
| typedef std::function<void(const std::string&)> action_spectator::error_handler_function |
Definition at line 28 of file synced_commands.hpp.
|
default |
|
inline |
Definition at line 30 of file synced_commands.hpp.
|
virtualdefault |
|
inlinevirtual |
Called when synced_context::run received nonsensial data based on the current gamestate.
Reimplemented in actions::move_unit_spectator.
Definition at line 38 of file synced_commands.hpp.
References eh_.
Referenced by synced_context::run(), and synced_context::run_in_synced_context_if_not_already().
| error_handler_function action_spectator::eh_ |
Definition at line 42 of file synced_commands.hpp.
Referenced by error().