RuneHive-Game
Loading...
Searching...
No Matches
Coffer.java
Go to the documentation of this file.
1package com.runehive.content.tradingpost;
2
3public 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}