PercentageBehavior.PercentageBehavior Class Reference


Detailed Description

A base class for behaviors that can compute their state from the absolute percentage within their duration.

Speed and duration don't really need to be both there, but it is convenient to think of speed as a temporary adjustment, while the duration is more of a property.

#include <class_percentage_behavior_1_1_percentage_behavior.h>

Inheritance diagram for PercentageBehavior.PercentageBehavior:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  initParameters ()
  Virtual method, called after a behavior is read from a scene file.
  getDefaultImage ()
  getDefaultIcon ()
  getParameterType ()
  Returns the type of the parameter.
  removeNodes ()
  Remove the nodes from this behaviour.
  addNodes ()
  Add nodes to this behaviour.
  setParameterValue ()
  Sets the value of a given parameter.
  update ()
  Implement this method in subclasses to perform the actual behavior.
  isLoaded ()
  basename ()
  Return a basename that will be used to build names and labels.

Member Function Documentation

PercentageBehavior.PercentageBehavior.__init__ ( )
PercentageBehavior.PercentageBehavior.initParameters ( )

Virtual method, called after a behavior is read from a scene file.

Subclasses can override this method to complete their initialization. For instance, runtime-only parameters might be initialized.

Reimplemented from Behavior.Behavior.

PercentageBehavior.PercentageBehavior.getDefaultImage ( )
PercentageBehavior.PercentageBehavior.getDefaultIcon ( )
PercentageBehavior.PercentageBehavior.getParameterType ( )

Returns the type of the parameter.

The subclasses may need to override this method to provide the types of parameters that do not have standard types (3Floats, ... ).

Reimplemented from Behavior.Behavior.

PercentageBehavior.PercentageBehavior.removeNodes ( )

Remove the nodes from this behaviour.

Returns true if any nodes have been removed from the behavior.

Reimplemented from Behavior.Behavior.

Reimplemented in MasterBehavior.MasterBehavior.

PercentageBehavior.PercentageBehavior.addNodes ( )

Add nodes to this behaviour.

Returns true if any new nodes have been added to the behavior.

Reimplemented from Behavior.Behavior.

Reimplemented in MasterBehavior.MasterBehavior.

PercentageBehavior.PercentageBehavior.setParameterValue ( )

Sets the value of a given parameter.

Reimplemented from Behavior.Behavior.

PercentageBehavior.PercentageBehavior.update ( )

Implement this method in subclasses to perform the actual behavior.

timestep is in seconds.

Reimplemented from Behavior.Behavior.

PercentageBehavior.PercentageBehavior.isLoaded ( )
PercentageBehavior.PercentageBehavior.basename ( )

Return a basename that will be used to build names and labels.

Derived classes will typically override this method.

Reimplemented from Behavior.Behavior.

Reimplemented in MasterBehavior.MasterBehavior.


PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior
PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior PercentageBehavior.PercentageBehavior