Creepy-simulation
 
Loading...
Searching...
No Matches
steve_drawer.SteveManager Class Reference

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)
 

Detailed Description

@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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ _steves2data()

steve_drawer.SteveManager._steves2data (   self,
  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.

◆ draw_steves()

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.

◆ update_steves()

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.

Member Data Documentation

◆ manager

steve_drawer.SteveManager.manager

◆ shift

steve_drawer.SteveManager.shift

◆ steves

steve_drawer.SteveManager.steves

The documentation for this class was generated from the following file: