VgaGames 3 - Actionstack man-pages

[.. upper level ..]

VG3_actionstack_parent()

[added in version 1.4]

Return the parent-element of the top-most element of an actionstack.
SYNTAX
struct vg3_actionstack_elem VG3_actionstack_parent(struct vg3_actionstack *astack)

FUNCTION PARAMETERS
astack Actionstack

RETURN VALUE
Returns the parent-element of the top-most element of the actionstack.

DESCRIPTION
Return the parent-element of the top-most element of an actionstack. The return value of the struct vg3_actionstack_elem contains - in name_id the name-ID of the parent-element - in stack_id the unique stack-ID of the parent-element - in hparm the parent-element's parameter-hash If the top-most element has no parent, the returned structure-element stack_id will be set to 0.

SEE ALSO
VG3_actionstack_new() VG3_actionstack_free() VG3_actionstack_push() VG3_actionstack_get() VG3_actionstack_pop() VG3_actionstack_dump()