PActivity Members

PActivity overview

Public Instance Constructors

PActivityOverloaded. Initializes a new instance of the PActivity class.

Public Instance Fields

ActivityFinished Used to notify classes when the activity has finished.
ActivityStarted Used to notify classes when the activity has started.
ActivityStepped Used to notify classes when the activity is running.

Public Instance Properties

ActivityDelegate Sets the PActivityDelegate for this activity.
ActivityScheduler Gets or sets the activity scheduler associated with this activity.
Duration Gets or sets the amount of time that this activity should take to complete, after the OnActivityStarted method is called.
IsAnimation Gets a value indicating whether this activity is performing an animation.
IsStepping Gets a value indicating whether this activity is stepping.
NextStepTime Gets the next time this activity should step, in PRoot global time.
StartTime Gets or sets the time that this activity should start running in PRoot global time.
StepInterval Gets or sets the minimum number of milliseconds that this activity should delay between steps.
StopTime Gets the time when this activity should finish running.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ProcessStep The activity scheduler calls this method and it is here that the activity decides if it should do a step or not for the given time.
StartAfter Schedules this activity to start after the first activity has finished.
Terminate Stop this activity immediately, and remove it from the activity scheduler.
ToString Returns a string representation of this object for debugging purposes.

Protected Instance Properties

ParamString Gets a string representing the state of this object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnActivityFinished This method is called after an activity has finished running and the activity has been removed from the PActivityScheduler queue.
OnActivityStarted This method is called right before an activity is scheduled to start running.
OnActivityStep This method is called repeatedly when the activity is running.

See Also

PActivity Class | UMD.HCIL.Piccolo.Activities Namespace