RuneHive-Game
Loading...
Searching...
No Matches
Coffer.java
Go to the documentation of this file.
1
package
com.runehive.content.tradingpost;
2
3
public
class
Coffer
{
4
private
final
String
owner
;
5
private
long
amount
;
6
7
public
Coffer
(String
owner
) {
8
this.owner =
owner
;
9
}
10
11
public
String
getOwner
() {
12
return
owner
;
13
}
14
15
public
long
getAmount
() {
16
return
amount
;
17
}
18
19
public
void
setAmount
(
long
amount
) {
20
this.amount =
amount
;
21
}
22
23
public
void
addAmount
(
int
amount
) {
24
this.amount +=
amount
;
25
}
26
27
public
void
subtractAmount
(
int
amount
) {
28
this.amount -=
amount
;
29
}
30
}
com.runehive.content.tradingpost.Coffer.addAmount
void addAmount(int amount)
Definition
Coffer.java:23
com.runehive.content.tradingpost.Coffer.getOwner
String getOwner()
Definition
Coffer.java:11
com.runehive.content.tradingpost.Coffer.setAmount
void setAmount(long amount)
Definition
Coffer.java:19
com.runehive.content.tradingpost.Coffer.amount
long amount
Definition
Coffer.java:5
com.runehive.content.tradingpost.Coffer.owner
final String owner
Definition
Coffer.java:4
com.runehive.content.tradingpost.Coffer.getAmount
long getAmount()
Definition
Coffer.java:15
com.runehive.content.tradingpost.Coffer.Coffer
Coffer(String owner)
Definition
Coffer.java:7
com.runehive.content.tradingpost.Coffer.subtractAmount
void subtractAmount(int amount)
Definition
Coffer.java:27