Establishing behaviours

Inside the GameInstance class, there are several methods that we can override to do things inside the instance, these methods are events that are triggered according to the Game Flow. The events are:

  • onNew

  • onPreparation

  • onJoinedCommon

  • onJoinedAsPlayer

  • onJoinedAsSpectator

  • onGameStarted

  • onDeath

  • onPrepareToEnd

  • onEnding

  • onGameStateChange

The purpose of these methods is to allow you to perform special actions according to these events. To see in detail each method check the javadocs. Also check the Game Flow.

Last updated