'Dynamism' Dynamic
Channel Manager
The "Dynamism" Dynamic Channel Manager
The Dynamic Channel Manager is coded in the 'Dynamism' script. The
below handlers return information about its current state. Read the
'Dynamism' documentation for
a discussion of the Dynamic Channel Manager.
The main thing you need to know initially about the Dynamic Channel
Manager is you need to edit a line of it.
You may want to call some of the below handlers to get a feel for how
it is allocating dynamic channels.
wfsGetNumberOfDynamicChannelsInUse()
Returns the number of dynamic channels currently in use.
theResult = wfsGetNumberOfDynamicChannelsInUse()
wfsGetDynamicChannelsInUse()
Returns a sorted list of the spritenums of the channels currently in
use as dynamic channels, ie, the channels in the list have dynamic sprites
in them. Changing this list does not change anything because it is a
duplicate of the gWFSUsedChannels list.
theResult = wfsGetDynamicChannelsInUse()
wfsGetNumberOfDynamicAvailableChannels()
Returns the number of channels currently available for the creation
of dynamic sprites.
theResult = wfsGetNumberOfDynamicAvailableChannels()
wfsGetDynamicAvailableChannels()
Returns a linear list of the currently unused dynamic channels. Changing
this list changes nothing because it is a duplicate of gWFSUnusedChannels.
theResult = wfsGetDynamicAvailableChannels()
wfsGetLastStaticSpriteChannel()
Returns gWFSLastStaticSpriteChannel, a WFS global. This is a constant.
You have to set this yourself by editing a line in the intializeDynamism
handler in the Dynamism script. See instructions.
|