33#include " ../msg/messageGroup.h"
44#include < list>
55
6- class Event
7- {
8- public:
6+ struct Event {
97 VActor& actor; // what am in?
108 float myActorHandle; // whom does it happen to?
119// float myReturnValue; // if event returns a value, store it here
@@ -14,12 +12,11 @@ class Event
1412// float when_beat; // Under construction. #defined to be 'when', for now.
1513 char msg[512 ]; // what happens?
1614 Event (VActor& a, float w, const char * m): actor(a), when(w) { strcpy (msg, m); }
17- ~ Event () {}
15+ Event () = delete ;
1816};
1917#define when_beat when /* hack. does this work for different myBeatLength's? ;;;;*/
2018
21- class SeqActor : public VActor
22- {
19+ class SeqActor : public VActor {
2320public:
2421 SeqActor ();
2522 SeqActor (SeqActor&);
@@ -35,11 +32,11 @@ class SeqActor : public VActor
3532 void setLoopStart (float start) { myLoopStart = start; }
3633 void setLoopEnd (float end) { myLoopEnd = end; }
3734
38- // / void addMessage(const float when, const float returnID, char*) {}
3935 void addMessage (float when, const char *);
4036 void addMessage (const Event&);
4137
4238#ifdef UNDER_CONSTRUCTION
39+ void addMessage (const float when, const float returnID, char *) {}
4340 // void addMessagesRet(const float howMany);
4441 // void addMessages(const float howMany);
4542
@@ -71,8 +68,8 @@ class SeqActor : public VActor
7168 int myNumLoops;
7269 float myBeatLength;
7370 float myNowBeat;
74- using SeqList = std::list<Event>;
75- SeqList::iterator myIter;
71+ using SeqList = std::list<Event>;
72+ SeqList::iterator myIter;
7673 SeqList myList;
7774
7875public:
0 commit comments