Méthode | Description | |
---|---|---|
AddActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void |
Add this activity to the scheduler. Adding an activity schedules that activity to run at some point in the future. |
|
AddActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity, bool processLast ) : void |
Add this activity to the scheduler. Adding an activity schedules that activity to run at some point in the future. Sometimes it's useful to make sure that an activity is run after all other activities have been run. To do this set processLast to true when adding the activity. |
|
PActivityScheduler ( UMD.HCIL.Piccolo.PRoot rootNode ) : System |
Constructs a new PActivityScheduler.
|
|
ProcessActivities ( long currentTime ) : void |
Process all scheduled activities for the given time. Each activity is given one "step", equivalent to one frame of animation.
|
|
RemoveActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void |
Remove this activity from the scheduler. Once an activity has been removed from the scheduler, it will no longer be run. |
|
RemoveAllActivities ( ) : void |
Removes all activities currently scheduled to run. This method clears the scheduler. |
Méthode | Description | |
---|---|---|
StartActivityTimer ( ) : void |
Starts the timer that controls the stepping of activities.
|
|
StepActivities ( object sender, |
Steps all running activities by calling the root's
|
|
StopActivityTimer ( ) : void |
Stops the timer that controls the stepping of activities.
|
public AddActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void | ||
activity | UMD.HCIL.Piccolo.Activities.PActivity | The activity to be added. |
Résultat | void |
public AddActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity, bool processLast ) : void | ||
activity | UMD.HCIL.Piccolo.Activities.PActivity | The activity to be added. |
processLast | bool | /// Specifies whether the activity should be run last. /// |
Résultat | void |
public PActivityScheduler ( UMD.HCIL.Piccolo.PRoot rootNode ) : System | ||
rootNode | UMD.HCIL.Piccolo.PRoot | The root node to associate with this activity scheduler. |
Résultat | System |
public ProcessActivities ( long currentTime ) : void | ||
currentTime | long | The time for which to process each activity. |
Résultat | void |
public RemoveActivity ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void | ||
activity | UMD.HCIL.Piccolo.Activities.PActivity | The activity to be removed. |
Résultat | void |
protected StepActivities ( object sender, |
||
sender | object | The source of this Tick Event. |
eArgs | The arguments for this Tick Event. | |
Résultat | void |