Added a class to map object ids so they can be called by name
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
104
lib/features/entities/map_objects.dart
Normal file
104
lib/features/entities/map_objects.dart
Normal file
@@ -0,0 +1,104 @@
|
||||
abstract class MapObjectId {
|
||||
// --- Player Spawns ---
|
||||
static const int playerNorth = 19;
|
||||
static const int playerEast = 20;
|
||||
static const int playerSouth = 21;
|
||||
static const int playerWest = 22;
|
||||
|
||||
// --- Static Decorations ---
|
||||
static const int waterPuddle = 23;
|
||||
static const int greenBarrel = 24;
|
||||
static const int chairTable = 25;
|
||||
static const int floorLamp = 26;
|
||||
static const int chandelier = 27;
|
||||
static const int hangingSkeleton = 28;
|
||||
static const int dogFood = 29; // Also used as decoration
|
||||
static const int whiteColumn = 30;
|
||||
static const int pottedPlant = 31;
|
||||
static const int blueSkeleton = 32;
|
||||
static const int vent = 33;
|
||||
static const int kitchenCans = 34;
|
||||
static const int exitSign = 35;
|
||||
static const int brownPlant = 36;
|
||||
static const int bowl = 37;
|
||||
static const int armoredSuit = 38;
|
||||
static const int emptyCage = 39;
|
||||
static const int cageWithSkeleton = 40;
|
||||
static const int bones = 41;
|
||||
static const int goldenKeybowl = 42; // Decorative only
|
||||
|
||||
// --- Collectibles & Items ---
|
||||
static const int goldKey = 43;
|
||||
static const int silverKey = 44;
|
||||
static const int bed = 45; // Bed is usually non-collectible but in this range
|
||||
static const int basket = 46;
|
||||
static const int food = 47;
|
||||
static const int medkit = 48;
|
||||
static const int ammoClip = 49;
|
||||
static const int machineGun = 50;
|
||||
static const int chainGun = 51;
|
||||
static const int cross = 52;
|
||||
static const int chalice = 53;
|
||||
static const int chest = 54;
|
||||
static const int crown = 55;
|
||||
static const int extraLife = 56;
|
||||
|
||||
// --- More Decorations ---
|
||||
static const int bloodPool = 57;
|
||||
static const int barrel = 58;
|
||||
static const int well = 59;
|
||||
static const int emptyWell = 60;
|
||||
static const int bloodPoolLarge = 61;
|
||||
static const int flag = 62;
|
||||
static const int callanard = 63; // Aardwolf sign / hidden message
|
||||
static const int bonesAndSkull = 64;
|
||||
static const int wallHanging = 65;
|
||||
static const int stove = 66;
|
||||
static const int spearRack = 67;
|
||||
static const int vines = 68;
|
||||
|
||||
// --- Special Objects ---
|
||||
static const int secretDoor = 98; // Often used for the Pushwall trigger
|
||||
static const int elevatorToSecretLevel = 99;
|
||||
static const int exitTrigger = 100;
|
||||
|
||||
// --- Enemies (Spawn Points) ---
|
||||
// Guards
|
||||
static const int guardEasyNorth = 108;
|
||||
static const int guardEasyEast = 109;
|
||||
static const int guardEasySouth = 110;
|
||||
static const int guardEasyWest = 111;
|
||||
|
||||
// SS Guards
|
||||
static const int ssEasyNorth = 124;
|
||||
static const int ssEasyEast = 125;
|
||||
static const int ssEasySouth = 126;
|
||||
static const int ssEasyWest = 127;
|
||||
|
||||
// Dogs
|
||||
static const int dogEasyNorth = 140;
|
||||
static const int dogEasyEast = 141;
|
||||
static const int dogEasySouth = 142;
|
||||
static const int dogEasyWest = 143;
|
||||
|
||||
// Mutants
|
||||
static const int mutantEasyNorth = 156;
|
||||
static const int mutantEasyEast = 157;
|
||||
static const int mutantEasySouth = 158;
|
||||
static const int mutantEasyWest = 159;
|
||||
|
||||
// Officers
|
||||
static const int officerEasyNorth = 172;
|
||||
static const int officerEasyEast = 173;
|
||||
static const int officerEasySouth = 174;
|
||||
static const int officerEasyWest = 175;
|
||||
|
||||
// Bosses (Single spawn points)
|
||||
static const int bossHansGrosse = 214;
|
||||
static const int bossDrSchabbs = 215;
|
||||
static const int bossFakeHitler = 216;
|
||||
static const int bossMechaHitler = 217;
|
||||
static const int bossOttoGiftmacher = 218;
|
||||
static const int bossGretelGrosse = 219;
|
||||
static const int bossGeneralFettgesicht = 220;
|
||||
}
|
||||
Reference in New Issue
Block a user