Creepy-simulation
 
Loading...
Searching...
No Matches
view.running_game.RunningGame Class Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ algo_update()

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.

◆ start_game()

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.

◆ step_draw()

view.running_game.RunningGame.step_draw (   self)
Renders the simulation objects on the given surface.

@param surface: The pygame surface to draw on.

Member Data Documentation

◆ app

view.running_game.RunningGame.app

◆ creepers_manager

view.running_game.RunningGame.creepers_manager

◆ last_update_time

view.running_game.RunningGame.last_update_time

◆ offset

view.running_game.RunningGame.offset

◆ simulation [1/2]

creepers_lib view.running_game.RunningGame.simulation .Simulation
static

◆ simulation [2/2]

view.running_game.RunningGame.simulation

◆ steve_manager

view.running_game.RunningGame.steve_manager

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