Class ItemSpawnConfig

java.lang.Object
com.csse3200.game.entities.configs.ItemSpawnConfig

public class ItemSpawnConfig extends Object
Sets up item spawn configurations for different maps To add items for a new map make a new method like FOREST_MAP
  • Constructor Details

    • ItemSpawnConfig

      public ItemSpawnConfig()
  • Method Details

    • forestmap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> forestmap()
      Gives a list of items(including weapons) and their spawn locations for the forest map Each item can have multiple spawn locations and each location can have multiple items
      Returns:
      a map of item names to a list of spawn info (location and quantity)
    • shippingmap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> shippingmap()
      Gives a list of items(including weapons) and their spawn locations for the shipping map Each item can have multiple spawn locations and each location can have multiple items
      Returns:
      a map of item names to a list of spawn info (location and quantity)
    • storage1map

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> storage1map()
      Gives a list of items(including weapons) and their spawn locations for the storage map Each item can have multiple spawn locations and each location can have multiple items
      Returns:
      a map of item names to a list of spawn info (location and quantity)
    • servermap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> servermap()
      Server Room spawning. Spawns a rifle on the purple spawn pad
    • tunnelmap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> tunnelmap()
      Server Room spawning. Spawns a rifle on the purple spawn pad
    • researchmap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> researchmap()
      Research Room spawning. Spawns a pistol, lightsaber, rifle in the map on various location
    • securitymap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> securitymap()
      Security Room spawning. Spawns a pistol, lightsaber, rifle in the map on various location
    • bossmap

      public static Map<String,List<ItemSpawner.ItemSpawnInfo>> bossmap()
      Boss room Spawning. Spawns a rifle next to the player