flimEngine
Basic Properties

GameObjects have certain properties that can be registered for callbacks, such as input, alarms, and collisions. More...

Collaboration diagram for Basic Properties:

Modules

 Callbacks
 SceneEntry, SceneExit, Update, Draw.
 
 Registration
 The inherited callbacks must be registered for.
 

Functions

errcode GameObject::SubmitEntry ()
 Submit entry to the scene. More...
 
errcode GameObject::SubmitExit ()
 Submit exit to the scene. More...
 

Detailed Description

GameObjects have certain properties that can be registered for callbacks, such as input, alarms, and collisions.

Function Documentation

◆ SubmitEntry()

errcode GameObject::SubmitEntry ( )

Submit entry to the scene.

Author
Jack Campbell
Date
3/5/2017
Call this method when you want to tell the game that a deactivated object should be activated. Then SceneEntry() callback will soon follow.
deadObject->SubmitEntry();
Returns
An errcode.

◆ SubmitExit()

errcode GameObject::SubmitExit ( )

Submit exit to the scene.

Author
Jack Campbell
Date
3/5/2017
When you want to kill an object, call this. Similar to a C++ destructor but Flim will recycle the object. Useful for factories, and calls the SceneExit callback
objectToDie->SubmitExit();
Returns
An errcode.