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
 
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
template<typename T >
auto casted_shared_from_this () -> std::shared_ptr< T >
 
template<typename T >
auto try_convert_object () noexcept -> T *
 Gets the most derived type of this object and upcasts it to T.
 
template<typename T >
auto try_convert_object () const noexcept -> const T *
 Const version of try_convert_object.
 
auto destroy () -> void
 
auto get_object_type () const -> rttr::type
 
auto get_owner () const -> object_owner *
 
auto get_owner_object () const -> object *
 
auto get_on_destroy () -> MulticastDelegate< object * > &
 
auto get_flags () const -> object_flags
 
auto set_flags (object_flags flagsToSet) -> void
 
auto clear_flags (object_flags flagsToClear) -> void
 
auto has_flag (object_flags flagsToCheck) -> bool
 
template<class archive_class >
void serialize (archive_class &archive, const unsigned int fileVersion)
 
- Public Member Functions inherited from sbk::core::object_owner
auto create_runtime_object (const rttr::type &type) -> std::shared_ptr< object >
 
auto create_database_object (const rttr::type &type, bool addToDatabase=true) -> std::shared_ptr< database_object >
 
template<typename T >
auto create_runtime_object () -> std::shared_ptr< T >
 
template<typename T >
auto create_database_object (bool addToDatabase=true) -> std::shared_ptr< T >
 
auto add_reference_to_object (std::shared_ptr< database_object > &object) -> void
 
auto remove_object (const std::shared_ptr< object > &object) -> std::vector< std::shared_ptr< sbk::core::object > >::iterator
 
auto destroy_all () -> void
 
auto get_objects () -> std::vector< std::shared_ptr< object > > &
 
auto get_objects () const -> const std::vector< std::shared_ptr< object > > &
 
auto get_objects_size () const -> std::size_t
 

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: