Class ItemSpawnConfig
java.lang.Object
com.csse3200.game.entities.configs.ItemSpawnConfig
Sets up item spawn configurations for different maps
To add items for a new map make a new method like FOREST_MAP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<String, List<ItemSpawner.ItemSpawnInfo>> bossmap()
Boss room Spawning.static Map
<String, List<ItemSpawner.ItemSpawnInfo>> 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 itemsstatic Map
<String, List<ItemSpawner.ItemSpawnInfo>> Research Room spawning.static Map
<String, List<ItemSpawner.ItemSpawnInfo>> Security Room spawning.static Map
<String, List<ItemSpawner.ItemSpawnInfo>> Server Room spawning.static Map
<String, List<ItemSpawner.ItemSpawnInfo>> 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 itemsstatic Map
<String, List<ItemSpawner.ItemSpawnInfo>> 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 itemsstatic Map
<String, List<ItemSpawner.ItemSpawnInfo>> Server Room spawning.
-
Constructor Details
-
ItemSpawnConfig
public ItemSpawnConfig()
-
-
Method Details
-
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
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
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
Server Room spawning. Spawns a rifle on the purple spawn pad -
tunnelmap
Server Room spawning. Spawns a rifle on the purple spawn pad -
researchmap
Research Room spawning. Spawns a pistol, lightsaber, rifle in the map on various location -
securitymap
Security Room spawning. Spawns a pistol, lightsaber, rifle in the map on various location -
bossmap
Boss room Spawning. Spawns a rifle next to the player
-