-
Notifications
You must be signed in to change notification settings - Fork 2
Component
DrJonki edited this page Oct 10, 2014
·
4 revisions
Components are one of the corner stones of UtH-Engine. They can be used in a self-contained manner to define the fundamentals of your game's mechanics and aesthetics.
Component is an abstract class that doesn't do much anything on its own. To add functionality, one must derive their own class from Component and override the virtual methods:
-
Init- Called when the component is initialized. -
Update- Called during theGameObject'supdate function. -
Draw- Called during theGameObject'sdraw function.
These functions will be called when their respective functions are called for the object the component is bound to.
There are several components inside the engine which you can use to enable some basic features. Here's a list of the currently available components: