AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ AddSpawnable() [1/2]

virtual void drama::Task::AddSpawnable ( const std::string &  name,
Spawnable obj,
const std::string &  descr = "" 
)
inlinevirtualinherited

Add an action to the task.

A spawnable of the specified name is added to the task. The Spawnable object pointed to by obj is used to handle the messages.

Parameters
nameAction name.
objSpawnable object pointer
descrAction description string. Optional, if not specified an empty string is supplied. This string is output by control messages giving a list of actions of the task and can be accessed by various DRAMA interfaces.