bool CLightSwitch::EnterRoomMsg(CEnterRoomMsg *msg) { _flag = true; CPetControl *pet = getPetControl(); if (pet) _turnOnTV = pet->isFirstClassSuite(); return true; }
bool CTelevision::LightsMsg(CLightsMsg *msg) { CPetControl *pet = getPetControl(); bool isYourStateroom = false; if (pet) isYourStateroom = pet->isFirstClassSuite(); if (msg->_topLeft || !isYourStateroom) _turnOn = true; return true; }