//=========================================================================
- void Observable::notifyObservers()
+ void Observable::notifyObservers(int idController,int command)
{
if(_changed)
{
int i;
for(i=0;i<_observers.size();i++)
{
- _observers[i]->update();
+ _observers[i]->update(idController,command);
}
_changed=false;
}
void Observable::addObserver(Observer *observer)
{
- std::cout<<"RaC Observable::addObserver "<<observer<<std::endl;
_observers.push_back(observer);
}