#include <lights.h>
|
| | AlternatingDualRayOfLightObject (float x, float y, ObjectGeometry &geom, LightLevelMap *light_map, int16_t value, float ray_half_width=0.1f, float angular_speed=3.0f, float long_white_frame_dur=1.0f, float short_white_frame_dur=0.03f, int16_t white_frame_val=32767, std::string const &category="objects") |
| | AlternatingDualRayOfLightObject (Simulation *simulation, float x, float y, LightLevelMap *light_map, Configuration const &config, std::string const &category="objects") |
| void | render (SDL_Renderer *, b2WorldId) const override |
| | Renders the object on the given SDL renderer.
|
| void | launch_user_step (float t) override |
| | Launches the user-defined step function.
|
| void | update_light_map (LightLevelMap &l) |
| | Object (float _x, float _y, ObjectGeometry &_geom, std::string const &_category="objects") |
| | Constructs an Object.
|
| | Object (Simulation *simulation, float _x, float _y, Configuration const &config, std::string const &_category="objects") |
| | Constructs an Object from a configuration entry.
|
| virtual | ~Object () |
| | Destructor.
|
| ObjectGeometry * | get_geometry () |
| | Return the object's geometry.
|
| virtual void | move (float x, float y, float theta=NAN) |
| | Move the object to a given coordinate.
|
| virtual bool | is_tangible () const |
| | Returns whether this object is tangible (e.g. collisions, etc) or not.
|
| virtual arena_polygons_t | generate_contours (std::size_t points_per_contour=0) const |
| | Return one or more polygonal contours that represent the geometry of the object.
|
◆ AlternatingDualRayOfLightObject() [1/2]
| AlternatingDualRayOfLightObject::AlternatingDualRayOfLightObject |
( |
float | x, |
|
|
float | y, |
|
|
ObjectGeometry & | geom, |
|
|
LightLevelMap * | light_map, |
|
|
int16_t | value, |
|
|
float | ray_half_width = 0.1f, |
|
|
float | angular_speed = 3.0f, |
|
|
float | long_white_frame_dur = 1.0f, |
|
|
float | short_white_frame_dur = 0.03f, |
|
|
int16_t | white_frame_val = 32767, |
|
|
std::string const & | category = "objects" ) |
◆ AlternatingDualRayOfLightObject() [2/2]
| AlternatingDualRayOfLightObject::AlternatingDualRayOfLightObject |
( |
Simulation * | simulation, |
|
|
float | x, |
|
|
float | y, |
|
|
LightLevelMap * | light_map, |
|
|
Configuration const & | config, |
|
|
std::string const & | category = "objects" ) |
◆ launch_user_step()
| void AlternatingDualRayOfLightObject::launch_user_step |
( |
float | f | ) |
|
|
overridevirtual |
Launches the user-defined step function.
- Parameters
-
Reimplemented from Object.
◆ parse_configuration()
| void AlternatingDualRayOfLightObject::parse_configuration |
( |
Configuration const & | config, |
|
|
Simulation * | simulation ) |
|
overrideprotectedvirtual |
Parse a provided configuration and set associated members values.
- Parameters
-
Reimplemented from Object.
◆ render()
| void AlternatingDualRayOfLightObject::render |
( |
SDL_Renderer * | renderer, |
|
|
b2WorldId | world_id ) const |
|
inlineoverridevirtual |
Renders the object on the given SDL renderer.
- Parameters
-
| renderer | Pointer to the SDL_Renderer. |
| world_id | The Box2D world identifier (unused in rendering). |
Implements Object.
◆ update_light_map()
| void AlternatingDualRayOfLightObject::update_light_map |
( |
LightLevelMap & | l | ) |
|
The documentation for this class was generated from the following files: