RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.tradingpost.Coffer Class Reference

Public Member Functions

void addAmount (int amount)
 Coffer (String owner)
long getAmount ()
String getOwner ()
void setAmount (long amount)
void subtractAmount (int amount)

Private Attributes

long amount
final String owner

Detailed Description

Definition at line 3 of file Coffer.java.

Constructor & Destructor Documentation

◆ Coffer()

com.runehive.content.tradingpost.Coffer.Coffer ( String owner)

Definition at line 7 of file Coffer.java.

7 {
8 this.owner = owner;
9 }

References owner.

Member Function Documentation

◆ addAmount()

void com.runehive.content.tradingpost.Coffer.addAmount ( int amount)

Definition at line 23 of file Coffer.java.

23 {
24 this.amount += amount;
25 }

References amount.

◆ getAmount()

long com.runehive.content.tradingpost.Coffer.getAmount ( )

Definition at line 15 of file Coffer.java.

15 {
16 return amount;
17 }

References amount.

◆ getOwner()

String com.runehive.content.tradingpost.Coffer.getOwner ( )

Definition at line 11 of file Coffer.java.

11 {
12 return owner;
13 }

References owner.

Referenced by com.runehive.content.tradingpost.TradingPost.getCoffer(), and com.runehive.content.tradingpost.TradingPost.saveCoffer().

Here is the caller graph for this function:

◆ setAmount()

void com.runehive.content.tradingpost.Coffer.setAmount ( long amount)

Definition at line 19 of file Coffer.java.

19 {
20 this.amount = amount;
21 }

References amount.

◆ subtractAmount()

void com.runehive.content.tradingpost.Coffer.subtractAmount ( int amount)

Definition at line 27 of file Coffer.java.

27 {
28 this.amount -= amount;
29 }

References amount.

Member Data Documentation

◆ amount

long com.runehive.content.tradingpost.Coffer.amount
private

Definition at line 5 of file Coffer.java.

Referenced by addAmount(), getAmount(), setAmount(), and subtractAmount().

◆ owner

final String com.runehive.content.tradingpost.Coffer.owner
private

Definition at line 4 of file Coffer.java.

Referenced by Coffer(), and getOwner().


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