VgaGames 3 - VgaGames3-object man-pages

[.. upper level ..]

VG3_ofunc_get_seed()

[added in version 1.5]

Return the address of the object's seed-value for an object-ID.
SYNTAX
unsigned int * VG3_ofunc_get_seed(struct vg3_ofunc *ofstruct, const char *oid)

FUNCTION PARAMETERS
ofstruct Common VgaGames3-object structure
oid Object-ID

DESCRIPTION
Each object-ID of an object has an individual seed, which can be used for generating random numbers. VG3_ofunc_get_seed() returns the address of this seed to pass it to VG3_nw_random_getnext(). Note that in the getofc_*() function the seed is not yet available.

RETURN VALUE
Returns the address of the seed-value, or NULL if oid does not exist.

SEE ALSO
VG3_nw_random_initseed() VG3_nw_random_getnext() VG3_ofunc_mgmt_get_seed() VG3_ofunc_reset_seeds()