Interprets commands and passes them on to workers. More...
#include <Delegate.hpp>
Public Member Functions | |
| Delegate (Scene *scene, Canvas *canvas) | |
| ~Delegate () | |
| void | addListener (CommandListener *listener, int command) |
| void | fireEvent (int command) |
| Canvas * | getCanvas () const |
| Scene * | getScene () const |
| void | run (int command) |
| void | run (int command, float argument) |
| void | run (int command, string argument) |
| void | setCanvas (Canvas *canvas) |
| void | setScene (Scene *scene) |
Private Attributes | |
| Scene * | scene |
| Canvas * | canvas |
| map< int, CommandListener * > | listeners |
| Cameraman * | cameraman |
| Compositor * | compositor |
| Director * | director |
| Grip * | grip |
| Producer * | producer |
Interprets commands and passes them on to workers.
| ~Delegate | ( | ) |
Deletes all the workers.
| void addListener | ( | CommandListener * | listener, | |
| int | command | |||
| ) |
Adds a callback that will be called when a command is issued.
| void fireEvent | ( | int | command | ) |
Calls the listener for a command.
| void run | ( | int | command, | |
| string | argument | |||
| ) |
Runs a command by handing it off to a worker.
| void run | ( | int | command, | |
| float | argument | |||
| ) |
Runs a command by handing it off to a worker.
| void run | ( | int | command | ) |
Runs a command by handing it off to a worker.
1.6.3