Value | Meaning |
---|---|
Init | Object initialization flag. Will be called when the very first scene initialization occurs. When control is transferred to the scene again, such functions will no longer be called. |
Restart | A function with such a flag will be called only when the scene has already been initialized and control is transferred to it again, and so on every time. |
Entry | A function with such a flag will be called when control is transferred to the scene, regardless of whether it was initialized or not. |
Leave | A function with such a flag will be called only when the scene control is lost. |
Step | This flag is called every unit of the game loop pass in the current scene. |
Input | This function with a flag will be called when the user has entered something. Like a mouse, keyboard, joystick, etc. |
Draw | This function will be called to draw an object to form a frame. |
AnyTrigger | A function with this flag will respond to all triggers that were called in the current scene. |
AnyCollision | A function with this flag will react to all collisions of two objects (only applicable to an instance). |
Destroy | A function with this flag will react when the scene destroys the owner of the function. |
GameStart | A function with such a flag will be called at the very beginning of the game (if such an object was previously added to the constructor). |
GameRestart | A function with this flag will be called when the game is restarted. |
GameExit | A function with this flag will be called when the game ends. It is not necessary to implement garbage cleaning here, it is enough to implement it in destructors, here they usually implement the storage of some data. |
GameError | A function with this flag will be called when an unhandled error occurs. |