Entity

An Entity is a base root object from which all game objects derive their properties. An entity object is referred to as an U4DEngine::U4DEntity object.

Game characters, images, buttons, skyboxes, camera inherit their properties and behaviors from the U4DEntity parent class.

image

The U4DEntity object provides its subclasses Transformation Properties. That is, it provides translations and rotation properties. It also provides two important virtual methods, that can be overwritten, if necessary.

These methods are:

  • render()
  • update()

The render() method is in charge of rendering the entity on the screen. Whereas, the update() can be used to update the properties of the entity.

These methods are called automatically by the Game Engine Loop as it traverses entities in a scenegraph.

image