void *pTaskPayload; //any payload that goes along with the responsibility
Event wrap_message(Message &m, BaseEntity &e); ///takes a message and wraps it into an event.
void executeFSM(Entity e, Message m); //called when task is up for usage. Uses inheritance.
//dispatch() function called on the inherited class calls the
//the FSM specific to that Entity
private:
Message ¤t_message;
BaseEntity &fsm; //finite state machine
};
#endif /* Event_hpp */
THe compiler says: Constructor for event must expiclity initialize the reference member "current message"