Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 7 (modified by landauf, 16 years ago) (diff)

MetaObjectList

TracNav(TracNav/TOC_Development)?

Description

Every object in the game is in at least one ObjectList. Objects of inherited classes are in the list of the class and in the lists of all parents. When an object is deleted, it has to be removed from all ObjectLists. MetaObjectList does this really fast by storing the list-elements when creating the object and connection the next and the previous list-element when deleting the object. Therefore we don't have to iterate through all ObjectLists to remove the object.

The MetaObjectList of an object is located in OrxonoxClass.

Illustration

The illustration shows how a list element is removed from the list.

Attachments (1)

Download all attachments as: .zip