RuneHive-Game
Loading...
Searching...
No Matches
DonatorBond.java
Go to the documentation of this file.
1package com.runehive.content.donators;
2
3/**
4 * Holds all the donator bond data.
5 *
6 * @author Daniel.
7 */
8public enum DonatorBond {
9 BOND_10(13190, 10, 100),
10 BOND_50(13191, 50, 500),
11 BOND_100(13192, 100, 1000),
12 BOND_200(13193, 200, 2000),
13 BOND_500(13194, 500, 5000);
14
15 /** The item identification of the donator bond. */
16 public final int item;
17
18 /** The amount of money spent that was required for this bond. */
19 public final int moneySpent;
20
21 /** The amount of credits this bond will give. */
22 public final int credits;
23
24 /** Constructs a new <code>DonatorBond</code>. */
26 this.item = item;
27 this.moneySpent = moneySpent;
28 this.credits = credits;
29 }
30
31 /** Gets the bond data based on the item provided. */
32 public static DonatorBond forId(int item) {
33 for (DonatorBond bond : values()) {
34 if (bond.item == item)
35 return bond;
36 }
37 return null;
38 }
39}
final int moneySpent
The amount of money spent that was required for this bond.
static DonatorBond forId(int item)
Gets the bond data based on the item provided.
DonatorBond(int item, int moneySpent, int credits)
Constructs a new DonatorBond.
final int credits
The amount of credits this bond will give.
final int item
The item identification of the donator bond.