|
Autopysta
|
Class representing a fixed object on the road. More...
#include <vehicle.h>
Public Member Functions | |
| fixed_object (point *pos) | |
Constructor for the fixed_object class. | |
| point * | current () override |
| Get the current position of the fixed object. | |
| void | update (road_object *ro) override |
| Update the state of the fixed object. | |
Public Member Functions inherited from road_object | |
| virtual | ~road_object () |
Virtual destructor for the road_object class. | |
Additional Inherited Members | |
Public Attributes inherited from road_object | |
| model * | m = nullptr |
| Pointer to the model associated with the object (optional). | |
| generalized_trajectory * | traj = nullptr |
| Object's trajectory, which defines its movement and positions over time. | |
| std::queue< point * > | defined_t |
| A queue of defined trajectory points provided by the user. | |
Class representing a fixed object on the road.
The fixed_object class models a static object on the road, such as a roadblock or a parked vehicle. It remains stationary and has a fixed position in the simulation.
| fixed_object::fixed_object | ( | point * | pos | ) |
Constructor for the fixed_object class.
Initializes the object with a fixed position on the road.
| pos | A pointer to the position of the object. |
|
overridevirtual |
Get the current position of the fixed object.
Since the object is fixed, this method always returns the same position.
Implements road_object.
|
overridevirtual |
Update the state of the fixed object.
Since the object is fixed, this method does nothing. It is provided to satisfy the interface.
| ro | A pointer to another road object (unused in this context). |
Implements road_object.