/dports/games/residualvm/residualvm-0.3.1/engines/myst3/ |
H A D | database.h | 73 uint16 ageID; member 76 RoomKey(uint16 room, uint16 age) : roomID(room), ageID(age) {}; in RoomKey() 79 return ageID == k.ageID && roomID == k.roomID; 129 void cacheRoom(uint32 roomID, uint32 ageID); 136 bool isCommonRoom(uint32 roomID, uint32 ageID) const; 141 NodePtr getNodeData(uint16 nodeID, uint32 roomID, uint32 ageID); 156 Common::String getRoomName(uint32 roomID, uint32 ageID) const; 166 Common::Array<uint16> listRoomNodes(uint32 roomID, uint32 ageID); 171 uint32 getAgeLabelId(uint32 ageID); 188 return v.ageID + (v.roomID << 16); in operator() [all …]
|
H A D | console.cpp | 61 uint32 ageID = _vm->_state->getLocationAge(); in Cmd_Infos() local 69 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Infos() 75 ageID = roomKey.ageID; in Cmd_Infos() 85 Common::String roomName = _vm->_db->getRoomName(roomId, ageID); in Cmd_Infos() 182 uint32 ageID = _vm->_state->getLocationAge(); in Cmd_ListNodes() local 186 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_ListNodes() 192 ageID = roomKey.ageID; in Cmd_ListNodes() 217 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Run() 223 ageId = roomKey.ageID; in Cmd_Run() 261 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Go() [all …]
|
H A D | database.cpp | 528 if (_roomNodesCache.contains(RoomKey(roomID, ageID))) { in getRoomNodes() 529 nodes = _roomNodesCache.getVal(RoomKey(roomID, ageID)); in getRoomNodes() 531 const RoomData *data = findRoomData(roomID, ageID); in getRoomNodes() 542 nodes = getRoomNodes(roomID, ageID); in listRoomNodes() 599 if (_ages[i].id == ageID) { in findRoomData() 693 void Database::cacheRoom(uint32 roomID, uint32 ageID) { in cacheRoom() argument 694 if (_roomNodesCache.contains(RoomKey(roomID, ageID))) { in cacheRoom() 700 if (!isCommonRoom(it->_key.roomID, it->_key.ageID)) { in cacheRoom() 714 const RoomData *data = findRoomData(roomID, ageID); in getRoomName() 729 uint32 Database::getAgeLabelId(uint32 ageID) { in getAgeLabelId() argument [all …]
|
H A D | myst3.cpp | 822 if (ageID) in loadNode() 823 _state->setLocationAge(_state->valueOrVarValue(ageID)); in loadNode() 825 ageID = _state->getLocationAge(); in loadNode() 827 _db->cacheRoom(roomID, ageID); in loadNode() 829 Common::String newRoomName = _db->getRoomName(roomID, ageID); in loadNode() 960 if (ageID == 0) in runScriptsFromNode() 961 ageID = _state->getLocationAge(); in runScriptsFromNode() 963 NodePtr nodeData = _db->getNodeData(nodeID, roomID, ageID); in runScriptsFromNode() 980 if (ageID == 0) in runBackgroundSoundScriptsFromNode() 981 ageID = _state->getLocationAge(); in runBackgroundSoundScriptsFromNode() [all …]
|
H A D | myst3.h | 135 void loadNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0); 150 void runScriptsFromNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0); 151 void runBackgroundSoundScriptsFromNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0);
|
/dports/games/scummvm/scummvm-2.5.1/engines/myst3/ |
H A D | database.h | 115 uint16 ageID; member 118 RoomKey(uint16 room, uint16 age) : roomID(room), ageID(age) {}; in RoomKey() 121 return ageID == k.ageID && roomID == k.roomID; 171 void cacheRoom(uint32 roomID, uint32 ageID); 178 bool isCommonRoom(uint32 roomID, uint32 ageID) const; 183 NodePtr getNodeData(uint16 nodeID, uint32 roomID, uint32 ageID); 198 Common::String getRoomName(uint32 roomID, uint32 ageID) const; 208 Common::Array<uint16> listRoomNodes(uint32 roomID, uint32 ageID); 213 uint32 getAgeLabelId(uint32 ageID); 237 return v.ageID + (v.roomID << 16); in operator() [all …]
|
H A D | database.cpp | 530 if (_roomNodesCache.contains(RoomKey(roomID, ageID))) { in getRoomNodes() 533 const RoomData *data = findRoomData(roomID, ageID); in getRoomNodes() 544 nodes = getRoomNodes(roomID, ageID); in listRoomNodes() 601 if (_ages[i].id == ageID) { in findRoomData() 610 error("No room with ID %d in age %d", roomID, ageID); in findRoomData() 695 void Database::cacheRoom(uint32 roomID, uint32 ageID) { in cacheRoom() argument 696 if (_roomNodesCache.contains(RoomKey(roomID, ageID))) { in cacheRoom() 702 if (!isCommonRoom(it->_key.roomID, it->_key.ageID)) { in cacheRoom() 716 const RoomData *data = findRoomData(roomID, ageID); in getRoomName() 731 uint32 Database::getAgeLabelId(uint32 ageID) { in getAgeLabelId() argument [all …]
|
H A D | console.cpp | 61 uint32 ageID = _vm->_state->getLocationAge(); in Cmd_Infos() local 69 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Infos() 75 ageID = roomKey.ageID; in Cmd_Infos() 85 Common::String roomName = _vm->_db->getRoomName(roomId, ageID); in Cmd_Infos() 186 uint32 ageID = _vm->_state->getLocationAge(); in Cmd_ListNodes() local 190 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_ListNodes() 196 ageID = roomKey.ageID; in Cmd_ListNodes() 221 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Run() 227 ageId = roomKey.ageID; in Cmd_Run() 265 if (roomKey.roomID == 0 || roomKey.ageID == 0) { in Cmd_Go() [all …]
|
H A D | myst3.cpp | 837 if (ageID) in loadNode() 838 _state->setLocationAge(_state->valueOrVarValue(ageID)); in loadNode() 840 ageID = _state->getLocationAge(); in loadNode() 842 _db->cacheRoom(roomID, ageID); in loadNode() 979 if (ageID == 0) in runScriptsFromNode() 980 ageID = _state->getLocationAge(); in runScriptsFromNode() 982 NodePtr nodeData = _db->getNodeData(nodeID, roomID, ageID); in runScriptsFromNode() 999 if (ageID == 0) in runBackgroundSoundScriptsFromNode() 1000 ageID = _state->getLocationAge(); in runBackgroundSoundScriptsFromNode() 1002 NodePtr nodeData = _db->getNodeData(nodeID, roomID, ageID); in runBackgroundSoundScriptsFromNode() [all …]
|
H A D | myst3.h | 138 void loadNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0); 153 void runScriptsFromNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0); 154 void runBackgroundSoundScriptsFromNode(uint16 nodeID, uint32 roomID = 0, uint32 ageID = 0);
|