bool CEnterExitSecClassMiniLift::StatusChangeMsg(CStatusChangeMsg *msg) { _statics->_state = msg->_newStatus; if (msg->_newStatus == 3) _statics->_state = 2; CPetControl *pet = getPetControl(); if (pet) pet->setRoomsSublevel(_statics->_state); _cursorId = _statics->_state == 1 ? CURSOR_MOVE_FORWARD : CURSOR_INVALID; return true; }
bool CEnterExitSecClassMiniLift::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (compareRoomNameTo("2ndClassLobby")) { _statics->_viewName = getRoomNodeName() + ".W"; changeView("SecClassLittleLift.Node 1.E"); _statics->_state = 1; CPetControl *pet = getPetControl(); if (pet) { pet->setRoomsRoomNum(_roomNum); pet->setRoomsSublevel(1); } } else if (compareRoomNameTo("SecClassLittleLift")) { if (_statics->_state == 1) { changeView(_statics->_viewName); } } return true; }