Public Member Functions | |
| __init__ (self, app, manager, position_shift) | |
| update_steves (self, steps) | |
| draw_steves (self, drawer) | |
Public Attributes | |
| manager | |
| shift | |
| steves | |
Protected Member Functions | |
| _steves2data (self, steves) | |
@class SteveManager @brief Handles the collection of Steves and their interactions. The SteveManager class manages a collection of SteveDrawer objects, updating their states and rendering them within the simulation.
| steve_drawer.SteveManager.__init__ | ( | self, | |
| app, | |||
| manager, | |||
| position_shift | |||
| ) |
Initializes the SteveManager object. @param app: The application managing the simulation. @param manager: The underlying Steve manager from the simulation library. @param position_shift: The positional offset for rendering Steves.
|
protected |
Converts Steves data into coordinates and states, applying positional shift. @param steves: The list of Steves from the simulation library. @return: A generator yielding shifted coordinates and states for each Steve.
| steve_drawer.SteveManager.draw_steves | ( | self, | |
| drawer | |||
| ) |
Renders all Steves on the provided drawer surface. @param drawer: The drawing surface or manager responsible for rendering.
| steve_drawer.SteveManager.update_steves | ( | self, | |
| steps | |||
| ) |
Updates the states and positions of all Steves. @param steps: The number of steps for updating Steve positions.
| steve_drawer.SteveManager.manager |
| steve_drawer.SteveManager.shift |
| steve_drawer.SteveManager.steves |