home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
shared.cst
/
00018_Script_ActorListMgrParent
< prev
next >
Wrap
Text File
|
1997-07-24
|
2KB
|
74 lines
--o: Actorlist Mgr
-- gActorListMgrObj
-- FUNCTIONALITY:
-- when in the actorList, the actorList manager will send an update (mPerform) message to all active objects.
property pSuspendedLst
property pActiveActorList
----------------------------------------------------------------------------ò
on mInit me
return( me )
mSetUp ( me )
end mInit
----------------------------------------------------------------------------ò
on mSetUp me
set pActiveActorList = []
set pSuspendedLst = []
set the actorlist = [me]
end mSetUp
----------------------------------------------------------------------------ò
on stepFrame me
repeat with objectItem in pActiveActorList
mPerform (objectItem)
end repeat
end stepFrame
----------------------------------------------------------------------------ò
on mAddToActorlist me, whatObj
set pos = getpos( pActiveActorList, whatObj)
if (pos = 0) then append(pActiveActorList, whatObj)
end mAddToActorlist
----------------------------------------------------------------------------ò
on mDeleteFromActorlist me, whatObj
set pos = getpos( pActiveActorList, whatObj)
if (pos <> 0) then deleteAt( pActiveActorList, Pos)
end mDeleteFromActorlist
----------------------------------------------------------------------------ò
on mSuspendActorlist me
set pSuspendedLst = pActiveActorList
set pActiveActorList = []
end mSuspendActorlist
----------------------------------------------------------------------------ò
on mResumeActorlist me
if (pSuspendedLst <> []) then set pActiveActorList = pSuspendedLst
end mResumeActorlist
----------------------------------------------------------------------------ò
on mClearActorlist me
set pActiveActorList = []
end mClearActorlist
----------------------------------------------------------------------------ò
on mGetActorList me
return( pActiveActorList )
end mGetActorList
----------------------------------------------------------------------------ò