Package populusgui :: Module BehaviorBox :: Class BehaviorItem
[frames] | no frames]

Class BehaviorItem


Behavior Item holds info about one behavior and colors it according to the type of it.

Instance Methods
 
__init__(self, name, position)
 
updateInfo(self, instanceCount, type)
Update the info of the BehaviorItem.
Class Variables
int TYPE_ENABLED = 0
BehaviorItem type for enabled behaviors.
int TYPE_RUNNING = 1
BehaviorItem type for running behaviors.
int TYPE_DISABLED = 2
BehaviorItem type for disabled behaviors.
Method Details

updateInfo(self, instanceCount, type)

 

Update the info of the BehaviorItem.

Parameters:
  • instanceCount (int) - The count of instances of the behavior.
  • type (int) - One of three types defined as Class Constants in this class.