bool CEnterSecClassState::MovieEndMsg(CMovieEndMsg *msg) { CPetControl *pet = getPetControl(); if (pet) { pet->setRooms1CC(_mode); pet->resetRoomsHighlight(); } return true; }
bool CSGTNavigation::StatusChangeMsg(CStatusChangeMsg *msg) { CPetControl *pet = getPetControl(); if (isEquals("SGTLL")) { static const int FRAMES[7] = { 0, 149, 112, 74, 0, 36, 74 }; _statics->_changeViewNum = msg->_newStatus; if (pet->getRooms1CC() != _statics->_changeViewNum) { changeView("SGTLittleLift.Node 1.N"); } int startVal = pet->getRooms1CC(); if (startVal > _statics->_changeViewNum) playMovie(FRAMES[startVal], FRAMES[_statics->_changeViewNum], MOVIE_WAIT_FOR_FINISH); else playMovie(FRAMES[startVal + 3], FRAMES[_statics->_changeViewNum + 3], MOVIE_WAIT_FOR_FINISH); _cursorId = _statics->_changeViewNum != 1 ? CURSOR_MOVE_FORWARD : CURSOR_INVALID; pet->setRooms1CC(_statics->_changeViewNum); pet->resetRoomsHighlight(); } return true; }