Actions » Action templates module

Contents

Templates used to build Butano's actions.

You can use them to build your own actions too.

Files

file bn_template_actions.h
file bn_value_template_actions.h

Classes

template<typename Property, class PropertyManager>
class bn::by_template_action
Modifies a property by a given delta.
template<typename Property, class PropertyManager>
class bn::cyclic_by_template_action
Modifies the property by delta from a minimum to a maximum. When the property is over the given maximum, it goes back to the given minimum and vice versa.
template<typename Property, class PropertyManager>
class bn::duration_by_template_action
Modifies the property by delta when the action is updated a given number of times.
template<typename Property, class PropertyManager>
class bn::cyclic_duration_by_template_action
Modifies the property by delta when the action is updated a given number of times. When the property is over the given maximum, it goes back to the given minimum and vice versa.
template<typename Property, class PropertyManager>
class bn::to_template_action
Modifies the property until it has a given state.
template<typename Property, class PropertyManager>
class bn::loop_template_action
Modifies the property by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
template<typename Property, class PropertyManager>
class bn::toggle_template_action
Changes the property when the action is updated a given number of times.
template<class PropertyManager>
class bn::bool_toggle_template_action
Toggles a boolean property when the action is updated a given number of times.
template<typename Value, typename Property, class PropertyManager>
class bn::by_value_template_action
Modifies the property of a value by a given delta.
template<typename Value, typename Property, class PropertyManager>
class bn::cyclic_by_value_template_action
Modifies the property of a value by delta from a minimum to a maximum. When the property is over the given maximum, it goes back to the given minimum and vice versa.
template<typename Value, typename Property, class PropertyManager>
class bn::duration_by_value_template_action
Modifies the property of a value by delta when the action is updated a given number of times.
template<typename Value, typename Property, class PropertyManager>
class bn::cyclic_duration_by_value_template_action
Modifies the property of a value by delta when the action is updated a given number of times. When the property is over the given maximum, it goes back to the given minimum and vice versa.
template<typename Value, typename Property, class PropertyManager>
class bn::to_value_template_action
Modifies the property of a value until it has a given state.
template<typename Value, typename Property, class PropertyManager>
class bn::loop_value_template_action
Modifies the property of a value by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
template<typename Value, typename Property, class PropertyManager>
class bn::toggle_value_template_action
Changes the property of a value when the action is updated a given number of times.
template<typename Value, class PropertyManager>
class bn::bool_toggle_value_template_action
Toggles a boolean property of a value when the action is updated a given number of times.