Squeak Class Documentation category index | class index  
 
Action
  category: Balloon3D-Wonderland Time
  superclass: Object
  subclasses:

This class implements Actions for Wonderlands. An Action is some task that should be executed every frame either forever, until a specified amount of time has elapsed, or until a specified condition holds true.

instance methods
  accessing
  getAffectedObject
isDone
isPaused
pause
resume

  management
  execute
setAffectedObject:
setLifetime:andCondition:
setScheduler:
setTask:
stop

class methods
  initialize-release
  do:eachframefor:toObject:inScheduler:
do:eachframeuntil:toObject:inScheduler:
do:toObject:inScheduler:

instance methods
  accessing top  
 

getAffectedObject

Returns the object affected by the action


 

isDone

Returns true if the Action is done executing either because it's lifetime has expired or because the specified condition is true


 

isPaused

Returns true if the action is paused


 

pause

Pause the action


 

resume

resume the action


  management top  
 

execute

Execute the Action's task


 

setAffectedObject:

Sets the object affected by the action


 

setLifetime:andCondition:

Sets how long the action should run, or the condition under which it should stop


 

setScheduler:

Sets the scheduler the Action is active in


 

setTask:

Sets the task the Action should perform each frame


 

stop

This method removes the Action from myScheduler's list of active actions


class methods
  initialize-release top  
 

do:eachframefor:toObject:inScheduler:

Creates a new Action that performs the specified task each frame for (time) seconds


 

do:eachframeuntil:toObject:inScheduler:

Creates a new Action that performs the specified task each frame until the specified condition holds true


 

do:toObject:inScheduler:

Creates a new Action that executes the specified task each frame