C++ Joueur Client
 All Classes Namespaces Functions Variables
cpp_client::Base_object Class Reference
Inheritance diagram for cpp_client::Base_object:
cpp_client::anarchy::Game_object cpp_client::catastrophe::Game_object cpp_client::checkers::Game_object cpp_client::chess::Game_object cpp_client::coreminer::Game_object cpp_client::necrowar::Game_object cpp_client::newtonian::Game_object cpp_client::pirates::Game_object cpp_client::saloon::Game_object cpp_client::spiders::Game_object cpp_client::stardash::Game_object cpp_client::stumped::Game_object

Public Member Functions

 Base_object (std::initializer_list< std::pair< std::string, Any && >> init)
 
template<typename T >
std::shared_ptr< typename
T::element_type > 
as ()
 Dynamically casts this object to another type. Returns nullptr if it cannot be converted to the type. More...
 
template<typename T >
bool is ()
 Determines if this object is of the specified object type More...
 

Member Function Documentation

template<typename T >
std::shared_ptr<typename T::element_type> cpp_client::Base_object::as ( )
inline

Dynamically casts this object to another type. Returns nullptr if it cannot be converted to the type.

Returns
A pointer to the desired type, or nullptr if it could not be converted
template<typename T >
bool cpp_client::Base_object::is ( )
inline

Determines if this object is of the specified object type

Returns
true if the object is the object type, false otherwise

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