Consider them the computer which take time as input and give the output on the screen.
Here's the deal: You want to build an amazing LifeEvent and also need dynamic control? Well,you might need to extend this class, or send JSON to JSONBrain file.
radio::Subscriber |
The class to be overridden to emit/receive events. |
DummyTouchBrain | ||
MusicalBrain | ||
JSONBrain |
Create a Brain by parsing a JSON file using JSONBrain. |
|
DummyBrain |
Brain | ( | ) |
Constructor
Sometimes a brain needs to dynamically do stuffs before adding itself to the app. That's where addTo(Empathy) comes handy in.
binder |
getDelay | ( | ) |
How late the begin
action should be called.
return |
Called when an event is received for this subscriber.
event |
run | ( | ) |
Start running lines on this empathy::brain::Brain::Brain usually called by the empathy::You class
setDelay | ( | GLfloat | delay | ) |
How late the begin
action should be called.
delay |
terminate | ( | ) |
A basic override function created for handling brain termination due to program abort.
Remember to call superclass while overriding.
activateTimeoutForNextLine | ( | std::__cxx11::string | lineID, | |
GLfloat | afterTime | ) |
Activate timeout for a certain line.
lineID | |
afterTime |
activateTimeoutForNextLine | ( | std::__cxx11::string | lineID, | |
GLfloat | afterTime, | |||
std::__cxx11::string | callerLineID | ) |
Activate timeout for a certain line.
lineID | |
afterTime | |
callerLineID |
Add life event to the current gamescreen.
event |
runLineNumber | ( | std::__cxx11::string | lineID, | |
std::__cxx11::string | callerID | ) |
Any extension of Brain class must override this function. What it does is receive instructions. For example, when the program begins, lineID is "begin" and when you need to play a music, it will be something like "playBeethoven". Your choice.
lineID | |
callerID |