pymasep.application.sub_app_state
Classes
This class implements the concept (pretty much) of Game State but in the sub app level. |
Module Contents
- class pymasep.application.sub_app_state.SubAppState(sub_application)
This class implements the concept (pretty much) of Game State but in the sub app level.
- Parameters:
sub_application (pymasep.application.SubApp) – the sub application where the state is defined
- sub_application
the sub application where the state is defined
- active = False
if the state is active or not
- init()
Initialisation of the state
- Return type:
None
- abstract update()
the update phase of the state, where variables change
- Return type:
None
- abstract render(time_delta)
the render part : how to display the state
- Parameters:
time_delta (float) – the time delta since the last render
- Return type:
None
- pause()
Pause the state
- Return type:
None
- clean()
The state is destroyed. Clean all elements of the state
- Return type:
None