Public Member Functions
|C++ constructor, creating an |
|virtual void||execute (entity_event_type en_type, ENTITY *en)|
|Executes the callback by updating the rendering appropriate to the specified entity and event. |
|toolkit_callback *||next ()|
|Specifies the next callback command. |
|toolkit_callback *||prev ()|
|Specifies the previous callback command. |
|C++ destructor, deleting an |
Role: C++ callbacks are similar to Scheme hooks. They are developer-defined functions that the system calls at predefined times.
This class is a base class from which other classes are derived, which receives notification of changes to entities. To use this class, derive a new class from
entity_callback, and overload the virtual execute method. To activate the callback, add it to the entity callback list by calling
executemethod is passed a pointer to the
ENTITYin question and an
entity_event_typeenumerator specifying the type of operation being performed. The method returns no value.
C++ constructor, creating an
C++ destructor, deleting an
Executes the callback by updating the rendering appropriate to the specified entity and event.
Role: The base class implementation effectively does nothing.
|en_type||the event that has changed the entity directly or through its part.|
|ent||the entity whose rendering is to be updated.|
Reimplemented in scm_pick_manager.
Specifies the next callback command.
Specifies the previous callback command.