Public Member Functions | |
| __init__ (self, app, position_shift) | |
| start_game (self) | |
| algo_update (self, thao) | |
| step_draw (self) | |
Public Attributes | |
| app | |
| offset | |
| creepers_manager | |
| steve_manager | |
| last_update_time | |
| simulation | |
Static Public Attributes | |
| creepers_lib | simulation .Simulation |
@class RunningGame @brief Manages the main game loop and interactions within the simulation. The RunningGame class handles the initialization, management, and updates of the simulation, including managing creepers and Steves.
| view.running_game.RunningGame.__init__ | ( | self, | |
| app, | |||
| position_shift | |||
| ) |
Initializes the RunningGame object. @param app: The main application object providing game settings and context. @param position_shift: The positional offset for rendering objects.
| view.running_game.RunningGame.algo_update | ( | self, | |
| thao | |||
| ) |
Updates the simulation state and manages rendering of objects. @param current_time: The current time in milliseconds.
| view.running_game.RunningGame.start_game | ( | self | ) |
Initializes the simulation with the configured parameters. Sets up the simulation field, distance function, and parameters for creepers and Steves.
| view.running_game.RunningGame.step_draw | ( | self | ) |
Renders the simulation objects on the given surface. @param surface: The pygame surface to draw on.
| view.running_game.RunningGame.app |
| view.running_game.RunningGame.creepers_manager |
| view.running_game.RunningGame.last_update_time |
| view.running_game.RunningGame.offset |
|
static |
| view.running_game.RunningGame.simulation |
| view.running_game.RunningGame.steve_manager |