Class LoadoutFactory
Loadouts define a preset configuration of equipment, inventory items, and rune pouch contents that can be equipped or geared up from the bank. This factory provides methods to create new loadouts or initialize builders from the player's current state.
Example usage:
// Create a new empty loadout builder
LoadoutBuilder builder = LoadoutFactory.newBuilder();
// Create a loadout from current equipment
LoadoutBuilder equipmentBuilder = LoadoutFactory.fromCurrentEquipment();
// Create a loadout from current inventory
LoadoutBuilder inventoryBuilder = LoadoutFactory.fromCurrentInventory();
// Create a loadout from everything (equipment + inventory + rune pouch)
LoadoutBuilder fullBuilder = LoadoutFactory.fromCurrentSetup();
// Copy an existing loadout to modify it
Loadout existingLoadout = ...;
LoadoutBuilder copyBuilder = LoadoutFactory.fromCurrentLoadout(existingLoadout);
// Build and use the loadout
Loadout loadout = builder.build();
loadout.equip(); // Gear up from bank
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadoutBuilderCreates a loadout builder initialized with the player's current equipment.static LoadoutBuilderCreates a loadout builder initialized with the player's current inventory.static LoadoutBuilderfromCurrentLoadout(Loadout loadout) Creates a loadout builder initialized from an existing loadout.static LoadoutBuilderCreates a loadout builder initialized with the current rune pouch contents.static LoadoutBuilderCreates a loadout builder initialized with the player's complete current setup.static LoadoutBuilderCreates a new empty loadout builder.
-
Constructor Details
-
LoadoutFactory
public LoadoutFactory()
-
-
Method Details
-
newBuilder
Creates a new empty loadout builder.Use this to build a loadout from scratch by adding items manually.
- Returns:
- a new
LoadoutBuilderinstance
-
fromCurrentRunePouch
Creates a loadout builder initialized with the current rune pouch contents.- Returns:
- a
LoadoutBuilderwith the current rune pouch configuration
-
fromCurrentEquipment
Creates a loadout builder initialized with the player's current equipment.This captures all currently worn items to create a loadout that can recreate the equipment setup.
- Returns:
- a
LoadoutBuilderwith the current equipment configuration
-
fromCurrentInventory
Creates a loadout builder initialized with the player's current inventory.This captures all items currently in the inventory to create a loadout that can recreate the inventory setup.
- Returns:
- a
LoadoutBuilderwith the current inventory configuration
-
fromCurrentSetup
Creates a loadout builder initialized with the player's complete current setup.This captures equipment, inventory, and rune pouch contents to create a comprehensive loadout of the player's current state.
- Returns:
- a
LoadoutBuilderwith the complete current setup
-
fromCurrentLoadout
Creates a loadout builder initialized from an existing loadout.This allows you to copy and modify an existing loadout configuration.
- Parameters:
loadout- the existing loadout to copy from- Returns:
- a
LoadoutBuilderinitialized with the loadout's configuration
-