Advertisement
Vlad3955

Mediator.cpp

Sep 18th, 2022
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "Mediator.h"
  2.  
  3. Mediator::Mediator() : lev(nullptr)
  4. {
  5.    
  6. }
  7.  
  8. void Mediator::AddColeague(LevelGUI* lGUI)
  9. {
  10.     lev = lGUI;
  11.  
  12.     //lguiVec.push_back(lGUI);
  13. }
  14.  
  15. void Mediator::queueMessage(std::string& mes)
  16. {
  17.     lev->BeNotified(mes);
  18.  
  19.     /*for (auto& it : lguiVec)
  20.     {
  21.         it->BeNotified(mes);
  22.     }*/
  23. }
  24.  
  25. Mediator::~Mediator()
  26. {
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement