Events Manager¶
Centralize the communication between the game elements, the navigation devices, the input systems and the sound engine.
- class src.events.Base(parent)¶
Bases: src.base.Base
- evadeEnemy(enemy)¶
Enemy got too distant, it can go away
- gameOver()¶
The game time is over
- hitByEnemy(enemy)¶
Enemy got the upper hand
- hitEnemy(enemy)¶
Enemy got hit, congratulations
- setFlashlightMode(power=True)¶
Activate or Deactivate the flashlight
- setSonarMode(power=True)¶
Activate or Deactivate the sonar
- spawnEnemy(enemy)¶
A new enemy got spawned
- startLap()¶
Start a new lap
- throwRock()¶
Throw a rock (to hit a pendulum)