aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2003-11-06 15:47:37 +0000
committerJoost Peters2003-11-06 15:47:37 +0000
commitd03ff2a119dd379243030b2ebcbea6cac96c3b8f (patch)
tree2029d77edb2d565853fff08cdf587b715c484d69
parentd3936b616c751303ddada6cabab8fbd11eb770c9 (diff)
downloadscummvm-rg350-d03ff2a119dd379243030b2ebcbea6cac96c3b8f.tar.gz
scummvm-rg350-d03ff2a119dd379243030b2ebcbea6cac96c3b8f.tar.bz2
scummvm-rg350-d03ff2a119dd379243030b2ebcbea6cac96c3b8f.zip
more enum stuff
svn-id: r11163
-rw-r--r--queen/cutaway.cpp12
-rw-r--r--queen/defs.h187
-rw-r--r--queen/logic.cpp12
3 files changed, 162 insertions, 49 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp
index 8ff216f539..cf24ea5162 100644
--- a/queen/cutaway.cpp
+++ b/queen/cutaway.cpp
@@ -1227,12 +1227,12 @@ void Cutaway::run(char *nextFilename) {
// function CUTAWAY_SPECIAL(), lines 885-896 in cutaway.c
if (_logic->currentRoom() == 1 && _logic->gameState(3) == 0) {
// XXX hard-coded room and inventory items
- _logic->inventoryDeleteItem(54, false);
- _logic->inventoryDeleteItem(56, false);
- _logic->inventoryDeleteItem(58, false);
- _logic->inventoryDeleteItem(59, false);
- _logic->inventoryDeleteItem(60, false);
- _logic->inventoryDeleteItem(61, false);
+ _logic->inventoryDeleteItem(ITEM_CROWBAR, false);
+ _logic->inventoryDeleteItem(ITEM_DRESS, false);
+ _logic->inventoryDeleteItem(ITEM_CLOTHES, false);
+ _logic->inventoryDeleteItem(ITEM_HAY, false);
+ _logic->inventoryDeleteItem(ITEM_OIL, false);
+ _logic->inventoryDeleteItem(ITEM_CHICKEN, false);
_logic->gameState(3, 1);
_logic->inventoryRefresh();
}
diff --git a/queen/defs.h b/queen/defs.h
index b1f21e4276..630addf8cc 100644
--- a/queen/defs.h
+++ b/queen/defs.h
@@ -74,51 +74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+ ITEM_LIT_TORCH,
+ ITEM_OPENED_DOG_FOOD,
+ ITEM_SOME_MONEY2,
+ ITEM_SOME_MORE_MONEY,
+ ITEM_PEELED_BANANA,
+ ITEM_STONE_DISC,
+ ITEM_GNARLED_VINE,
+ ITEM_FLINT,
+ ITEM_LIGHTER2,
+ ITEM_REST_OF_BEEF_JERKY,
+ ITEM_LOTS_OF_MONEY,
+ ITEM_HEAPS_OF_MONEY,
+ ITEM_OPEN_BOOK,
+ ITEM_REST_OF_THE_CHEESE_BITZ,
+ ITEM_SCISSORS,
+ ITEM_PENCIL,
+ ITEM_SUPER_WEENIE_SERUM,
+ ITEM_MUMMY_WRAPPINGS,
+ ITEM_COCONUT,
+ ITEM_ID_CARD,
+ ITEM_BIT_OF_STONE,
+ ITEM_CHUNK_OF_ROCK,
+ ITEM_BIG_STICK,
+ ITEM_STICKY_BIT_OF_STONE,
+ ITEM_STICKY_CHUNK_OF_ROCK,
+ ITEM_DEATH_MASK2,
+ ITEM_CHEFS_SURPRISE,
+ ITEM_STICKY_BAT,
+ ITEM_REST_OF_WRAPPINGS,
+ ITEM_BANANA2,
+ ITEM_MUG,
+ ITEM_FILE,
+ ITEM_POCKET_ROCKET_BLUEPRINTS,
+ ITEM_HAND_PUPPET,
+ ITEM_ARM_BONE,
+ ITEM_CROWN,
+ ITEM_COMIC_COUPON,
+ ITEM_TORN_PAGE
+};
enum {
- ROOM_JUNGLE_PINNACLE = 7,
- ROOM_JUNGLE_BUD_SKIP = 9,
- ROOM_JUNGLE_MISSIONARY = 13,
+ ROOM_JUNGLE_INSIDE_PLANE = 1,
+ ROOM_JUNGLE_OUTSIDE_PLANE = 2,
+ ROOM_JUNGLE_PINNACLE = 7,
+ ROOM_JUNGLE_SLOTH = 8,
+ ROOM_JUNGLE_BUD_SKIP = 9,
+ ROOM_JUNGLE_BEETLE = 11,
+ ROOM_JUNGLE_MISSIONARY = 13,
- ROOM_AMAZON_ENTRANCE = 16,
- ROOM_AMAZON_HIDEOUT = 17,
- ROOM_AMAZON_THRONE = 18,
- ROOM_AMAZON_JAIL = 19,
+ ROOM_AMAZON_ENTRANCE = 16,
+ ROOM_AMAZON_HIDEOUT = 17,
+ ROOM_AMAZON_THRONE = 18,
+ ROOM_AMAZON_JAIL = 19,
- ROOM_VILLAGE = 20,
- ROOM_TRADER_BOBS = 21,
+ ROOM_VILLAGE = 20,
+ ROOM_TRADER_BOBS = 21,
- ROOM_FLODA_OUTSIDE = 22,
- ROOM_FLODA_KITCHEN = 26,
- ROOM_FLODA_LOCKERROOM = 27,
- ROOM_FLODA_OFFICE = 35,
- ROOM_FLODA_FRONTDESK = 103,
-
- ROOM_TEMPLE_OUTSIDE = 43,
- ROOM_TEMPLE_MUMMIES = 46,
- ROOM_TEMPLE_ZOMBIES = 50,
- ROOM_TEMPLE_SNAKE = 53,
- ROOM_TEMPLE_LIZARD_LASER = 55,
+ ROOM_FLODA_OUTSIDE = 22,
+ ROOM_FLODA_KITCHEN = 26,
+ ROOM_FLODA_LOCKERROOM = 27,
+ ROOM_FLODA_KLUNK = 30,
+ ROOM_FLODA_HENRY = 32,
+ ROOM_FLODA_OFFICE = 35,
+ ROOM_FLODA_JAIL = 41,
+ ROOM_FLODA_FRONTDESK = 103,
+
+ ROOM_TEMPLE_OUTSIDE = 43,
+ ROOM_TEMPLE_MUMMIES = 46,
+ ROOM_TEMPLE_ZOMBIES = 50,
+ ROOM_TEMPLE_SNAKE = 53,
+ ROOM_TEMPLE_LIZARD_LASER = 55,
+ ROOM_TEMPLE_MAZE = 58,
+ ROOM_TEMPLE_MAZE2 = 59,
+ ROOM_TEMPLE_MAZE3 = 60,
+ ROOM_TEMPLE_MAZE4 = 61,
- ROOM_HOTEL_UPSTAIRS = 70,
- ROOM_HOTEL_DOWNSTAIRS = 71,
- ROOM_HOTEL_LOLA = 72,
- ROOM_HOTEL_LOBBY = 73,
+ ROOM_HOTEL_UPSTAIRS = 70,
+ ROOM_HOTEL_DOWNSTAIRS = 71,
+ ROOM_HOTEL_LOLA = 72,
+ ROOM_HOTEL_LOBBY = 73,
//special
- SPARKY_OUTSIDE_HOTEL = 77,
- DEATH_MASK = 79,
- IBI_LOGO = 82,
- COMIC_1 = 87,
- COMIC_2 = 88,
- COMIC_3 = 89,
- UNUSED_INTRO_1 = 91,
- UNUSED_INTRO_2 = 92,
- UNUSED_INTRO_3 = 93,
- UNUSED_INTRO_4 = 94,
- FOTAQ_LOGO = 95,
- AZURA_1 = 106,
- WARNER_LOGO = 126
+ SPARKY_OUTSIDE_HOTEL = 77,
+ DEATH_MASK = 79,
+ IBI_LOGO = 82,
+ COMIC_1 = 87,
+ COMIC_2 = 88,
+ COMIC_3 = 89,
+ UNUSED_INTRO_1 = 91,
+ UNUSED_INTRO_2 = 92,
+ UNUSED_INTRO_3 = 93,
+ UNUSED_INTRO_4 = 94,
+ FOTAQ_LOGO = 95,
+ AZURA_1 = 106,
+ WARNER_LOGO = 126
};
diff --git a/queen/logic.cpp b/queen/logic.cpp
index 7447335c96..6f29d367a8 100644
--- a/queen/logic.cpp
+++ b/queen/logic.cpp
@@ -1768,7 +1768,7 @@ void Logic::joeUseDress(bool showCut) {
joeFace();
if (gameState(VAR_DRESSING_MODE) == 0) {
playCutaway("cdres.CUT");
- inventoryInsertItem(58);
+ inventoryInsertItem(ITEM_CLOTHES);
}
else {
playCutaway("cudrs.CUT");
@@ -1776,7 +1776,7 @@ void Logic::joeUseDress(bool showCut) {
}
_display->palSetJoe(JP_DRESS);
joeSetupFromBanks("JoeD_A.BBK", "JoeD_B.BBK");
- inventoryDeleteItem(56);
+ inventoryDeleteItem(ITEM_DRESS);
gameState(VAR_DRESSING_MODE, 2);
}
@@ -1787,11 +1787,11 @@ void Logic::joeUseClothes(bool showCut) {
joeFacing(DIR_FRONT);
joeFace();
playCutaway("cdclo.CUT");
- inventoryInsertItem(56);
+ inventoryInsertItem(ITEM_DRESS);
}
_display->palSetJoe(JP_CLOTHES);
joeSetupFromBanks("Joe_A.BBK", "Joe_B.BBK");
- inventoryDeleteItem(58);
+ inventoryDeleteItem(ITEM_CLOTHES);
gameState(VAR_DRESSING_MODE, 0);
}
@@ -1904,8 +1904,8 @@ uint16 Logic::findInventoryItem(int invSlot) const {
void Logic::inventorySetup() {
_graphics->bankLoad("objects.BBK", 14);
- _inventoryItem[0] = 1; // Bat
- _inventoryItem[1] = _resource->isDemo() ? 7 : 2; // Journal
+ _inventoryItem[0] = ITEM_BAT;
+ _inventoryItem[1] = _resource->isDemo() ? ITEM_JOURNAL_DEMO : ITEM_JOURNAL;
_inventoryItem[2] = 0;
_inventoryItem[3] = 0;
}