bool CEnterSecClassState::MovieEndMsg(CMovieEndMsg *msg) {
	CPetControl *pet = getPetControl();
	if (pet) {
		pet->setRooms1CC(_mode);
		pet->resetRoomsHighlight();
	}

	return true;
}
Exemple #2
0
bool CPETMonitor::EnterRoomMsg(CEnterRoomMsg *msg) {
    bool flag = true;
    if (msg->_newRoom && msg->_oldRoom) {
        CString oldRoomName = msg->_oldRoom->getName();
        CString newRoomName = msg->_newRoom->getName();

        if (newRoomName == "SgtLobby" && oldRoomName == "SGTState")
            flag = false;
    }

    if (flag) {
        CPetControl *pet = getPetControl();
        if (pet) {
            pet->setRoomsRoomNum(0);
            pet->resetRoomsHighlight();
        }
    }

    return true;
}
Exemple #3
0
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;
}