The Battle for Wesnoth  1.19.7+dev
Public Types | Public Member Functions | Public Attributes | List of all members
action_spectator Class Reference

#include <synced_commands.hpp>

Inheritance diagram for action_spectator:

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_
 

Detailed Description

Definition at line 25 of file synced_commands.hpp.

Member Typedef Documentation

◆ error_handler_function

typedef std::function<void(const std::string&)> action_spectator::error_handler_function

Definition at line 28 of file synced_commands.hpp.

Constructor & Destructor Documentation

◆ action_spectator() [1/2]

action_spectator::action_spectator ( )
default

◆ action_spectator() [2/2]

action_spectator::action_spectator ( error_handler_function  eh)
inline

Definition at line 30 of file synced_commands.hpp.

◆ ~action_spectator()

virtual action_spectator::~action_spectator ( )
virtualdefault

Member Function Documentation

◆ error()

virtual void action_spectator::error ( const std::string &  message)
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().

Member Data Documentation

◆ eh_

error_handler_function action_spectator::eh_

Definition at line 42 of file synced_commands.hpp.

Referenced by error().


The documentation for this class was generated from the following file: