RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.preset.Preset Class Reference

The preset class. More...

Collaboration diagram for com.runehive.content.preset.Preset:

Public Member Functions

Item[] getEquipment ()
Item[] getInventory ()
 Gets the inventory of the preset.
String getName ()
 Gets the name of the preset.
PrayerBook getPrayer ()
Spellbook getSpellbook ()
 Preset ()
 Constructs a new preset.
 Preset (String name)
 Constructs a new preset.
 Preset (String name, Item[] inventory, Item[] equipment, PrayerBook prayer, Spellbook spellbook)
 Constructs a new preset.
void setName (String name)

Private Attributes

final Item[] equipment
 The equipment items of the preset.
final Item[] inventory
 The inventory items of the preset.
String name
 The name of the preset.
final PrayerBook prayer
 The quick-prayers of the preset.
final Spellbook spellbook
 The spellbook of the preset.

Detailed Description

The preset class.

Author
Daniel

Definition at line 12 of file Preset.java.

Constructor & Destructor Documentation

◆ Preset() [1/3]

com.runehive.content.preset.Preset.Preset ( String name,
Item[] inventory,
Item[] equipment,
PrayerBook prayer,
Spellbook spellbook )

Constructs a new preset.

Parameters
nameThe name of the preset.
inventoryThe inventory of the preset.
equipmentThe equipment of the preset.
prayerThe quick-prayers of the preset.
spellbookThe spellbook of the preset.

Definition at line 43 of file Preset.java.

43 {
44 this.name = name;
45 this.inventory = inventory;
46 this.equipment = equipment;
47 this.prayer = prayer;
48 this.spellbook = spellbook;
49 }

References equipment, inventory, name, prayer, and spellbook.

◆ Preset() [2/3]

com.runehive.content.preset.Preset.Preset ( String name)

Constructs a new preset.

Parameters
nameThe name of the preset.

Definition at line 57 of file Preset.java.

57 {
58 this(name, new Item[28], new Item[14], new PrayerBook(), Spellbook.MODERN);
59 }

References com.runehive.content.skill.impl.magic.Spellbook.MODERN, and name.

◆ Preset() [3/3]

com.runehive.content.preset.Preset.Preset ( )

Constructs a new preset.

Definition at line 64 of file Preset.java.

64 {
65 this(null, new Item[28], new Item[14], new PrayerBook(), Spellbook.MODERN);
66 }

References com.runehive.content.skill.impl.magic.Spellbook.MODERN.

Member Function Documentation

◆ getEquipment()

Item[] com.runehive.content.preset.Preset.getEquipment ( )

Definition at line 87 of file Preset.java.

87 {
88 return equipment;
89 }

References equipment.

◆ getInventory()

Item[] com.runehive.content.preset.Preset.getInventory ( )

Gets the inventory of the preset.

Returns
The preset inventory.

Definition at line 83 of file Preset.java.

83 {
84 return inventory;
85 }

References inventory.

◆ getName()

String com.runehive.content.preset.Preset.getName ( )

Gets the name of the preset.

Returns
The preset name.

Definition at line 74 of file Preset.java.

74 {
75 return name;
76 }

References name.

◆ getPrayer()

PrayerBook com.runehive.content.preset.Preset.getPrayer ( )

Definition at line 91 of file Preset.java.

91 {
92 return prayer;
93 }

References prayer.

◆ getSpellbook()

Spellbook com.runehive.content.preset.Preset.getSpellbook ( )

Definition at line 95 of file Preset.java.

95 {
96 return spellbook;
97 }

References spellbook.

◆ setName()

void com.runehive.content.preset.Preset.setName ( String name)

Definition at line 99 of file Preset.java.

99 {
100 this.name = name;
101 }

References name.

Member Data Documentation

◆ equipment

final Item [] com.runehive.content.preset.Preset.equipment
private

The equipment items of the preset.

Definition at line 21 of file Preset.java.

Referenced by getEquipment(), and Preset().

◆ inventory

final Item [] com.runehive.content.preset.Preset.inventory
private

The inventory items of the preset.

Definition at line 18 of file Preset.java.

Referenced by getInventory(), and Preset().

◆ name

String com.runehive.content.preset.Preset.name
private

The name of the preset.

Definition at line 15 of file Preset.java.

Referenced by getName(), Preset(), Preset(), and setName().

◆ prayer

final PrayerBook com.runehive.content.preset.Preset.prayer
private

The quick-prayers of the preset.

Definition at line 24 of file Preset.java.

Referenced by getPrayer(), and Preset().

◆ spellbook

final Spellbook com.runehive.content.preset.Preset.spellbook
private

The spellbook of the preset.

Definition at line 27 of file Preset.java.

Referenced by getSpellbook(), and Preset().


The documentation for this class was generated from the following file: