Replace 4-character constants with enums

This covers only the places where they were used to indicate
a preset selection in constructors.

The usage in qdpict where they're actually passed to the Resource Manager,
as well as the 4-character constants representing file types and creator
codes, are still present.
This commit is contained in:
2020-02-21 00:15:56 -05:00
parent 3d7f8f1d2a
commit 7b93726383
14 changed files with 69 additions and 50 deletions

View File

@@ -169,10 +169,10 @@ TEST_CASE("Saving a scenario record") {
// Loading/building shops requires strings to be available
// Here we fetch them from the rsrc dir, rather than the data dir
ResMgr::strings.pushPath("../rsrc/strings");
cItem dummy_item('alch');
cItem dummy_item(ITEM_POTION);
scen.shops.resize(3);
scen.shops[0] = cShop('junk');
scen.shops[1] = cShop('heal');
scen.shops[0] = cShop(SHOP_JUNK);
scen.shops[1] = cShop(SHOP_HEALING);
scen.shops[2].setName("The Test Shop");
scen.shops[2].setType(eShopType::NORMAL);
scen.shops[2].setPrompt(eShopPrompt::SHOPPING);