Symphony Of Empires
ClientState Class Reference

#include <game_state.hpp>

Public Member Functions

const std::vector< UnitIdget_selected_units () const
 
bool is_selected_unit (UnitId id) const
 
void select_unit (UnitId id)
 
void unselect_unit (UnitId id)
 
void clear_selected_units ()
 
auto add_listener (std::function< void(std::vector< UnitId >)> callback)
 
void remove_listener (eventpp::CallbackList< void(const std::vector< UnitId >)>::Handle handle)
 

Detailed Description

Definition at line 56 of file game_state.hpp.

Member Function Documentation

◆ add_listener()

auto ClientState::add_listener ( std::function< void(std::vector< UnitId >)>  callback)
inline

Definition at line 86 of file game_state.hpp.

Here is the caller graph for this function:

◆ clear_selected_units()

void ClientState::clear_selected_units ( )
inline

Definition at line 81 of file game_state.hpp.

◆ get_selected_units()

const std::vector<UnitId> ClientState::get_selected_units ( ) const
inline

Definition at line 60 of file game_state.hpp.

Here is the caller graph for this function:

◆ is_selected_unit()

bool ClientState::is_selected_unit ( UnitId  id) const
inline

Definition at line 64 of file game_state.hpp.

Here is the caller graph for this function:

◆ remove_listener()

void ClientState::remove_listener ( eventpp::CallbackList< void(const std::vector< UnitId >)>::Handle  handle)
inline

Definition at line 90 of file game_state.hpp.

◆ select_unit()

void ClientState::select_unit ( UnitId  id)
inline

Definition at line 68 of file game_state.hpp.

◆ unselect_unit()

void ClientState::unselect_unit ( UnitId  id)
inline

Definition at line 76 of file game_state.hpp.


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