public interface PlayerTrade
PlayerTrade class represents a trade between players. It can be an offer or a demand.
Note that this interface is immutable, thus, its object stores the information of just this turn
and will not be updated.| Modifier and Type | Method and Description |
|---|---|
int |
getAmount()
Returns the amount of material in the trade.
|
Material |
getMaterial()
Returns the material of the trade.
|
int |
getPlayerId()
Returns the id of the player doing the trade.
|
int |
getPricePerOneMaterial()
Returns the price per unit of material in this trade.
|
TradeType |
getTradeType()
Returns the type of the trade.
|
int getPlayerId()
Material getMaterial()
int getAmount()
int getPricePerOneMaterial()
TradeType getTradeType()