Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
sbk::engine::game_object Class Reference
Inheritance diagram for sbk::engine::game_object:
Collaboration diagram for sbk::engine::game_object:

Public Member Functions

voiceplay_container (container *container)
 
void post_event (event *event)
 
void stop_voice (voice *voice)
 
void stop_container (container *container)
 
void stop_all ()
 
void update ()
 
bool is_playing () const noexcept
 
std::size_t voice_count () const noexcept
 
voiceget_voice (std::size_t index) const
 
float get_float_parameter_value (const sbk::core::database_ptr< float_parameter > &parameter) const
 Finds the parameter value on this gameobject.
 
sbk_id get_int_parameter_value (const sbk::core::database_ptr< named_parameter > &parameter) const
 Finds the parameter value on this gameobject.
 
void set_float_parameter (const float_parameter::local_parameter_value_pair &parameterValue)
 
void set_int_parameter_value (const named_parameter::local_parameter_value_pair &parameterValue)
 
local_parameter_list get_local_parameters () const
 
- Public Member Functions inherited from sbk::core::object
object_ownerowner () const
 
template<typename T >
Ttry_convert_object () noexcept
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
const Ttry_convert_object () const noexcept
 
rttr::type getType () const
 
void destroy ()
 
MulticastDelegate< object * > & get_on_destroy ()
 
- Public Member Functions inherited from sbk::core::object_owner
std::shared_ptr< objectcreate_runtime_object (const rttr::type &type)
 
std::shared_ptr< objectload_object (YAML::Node &node)
 
std::shared_ptr< database_objectcreate_database_object (const rttr::type &type, bool addToDatabase=true)
 
template<typename T >
std::shared_ptr< Tcreate_runtime_object ()
 
template<typename T >
std::shared_ptr< Tcreate_database_object ()
 
void remove_object (const std::shared_ptr< object > &object)
 
void destroy_all ()
 
std::vector< std::shared_ptr< object > > & get_objects ()
 
const std::vector< std::shared_ptr< object > > & get_objects () const
 

Member Function Documentation

◆ get_float_parameter_value()

float sbk::engine::game_object::get_float_parameter_value ( const sbk::core::database_ptr< float_parameter > &  parameter) const

Finds the parameter value on this gameobject.

If there is no local value, the global parameter value is used.

Parameters
parameterto get the value for.
Returns
value of the parameter.

◆ get_int_parameter_value()

sbk_id sbk::engine::game_object::get_int_parameter_value ( const sbk::core::database_ptr< named_parameter > &  parameter) const

Finds the parameter value on this gameobject.

If there is no local value, the global parameter value is used.

Parameters
parameterto get the value for.
Returns
value of the parameter.

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