VgaGames4 - object man-pages

[.. upper level ..]

vg4->object->destroy_except()

Destroy object-instances of all object-IDs except the passed ones.

SYNTAX
void vg4->object->destroy_except(void *vgame, ...)

FUNCTION PARAMETERS
vgame Private structure of the game, or NULL if not existing
... Further parameters are exceptions: object-IDs, which shall not be destroyed, last parameter must be NULL

DESCRIPTION
Destroy object-instances of all object-IDs except the passed ones. This function does all the stuff vg4->object->destroy() does, but for all object-instances except to these, which belong to the exception object-IDs.

EXAMPLE
/* destroy all object-instances except PLAYER and BG */
vg4->object->destroy_except("PLAYER", "BG", NULL);

SEE ALSO
vg4->object->destroy() vg4->object->destroy_objid() vg4->object->destroyall()