energyTycoon
Class ExchangeClient
java.lang.Object
energyTycoon.Exchange
energyTycoon.ExchangeClient
public class ExchangeClient
- extends Exchange
Define exchange rules on client
- Author:
- Leo CARNAUT-DELORD
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExchangeClient
public ExchangeClient(int sellPrice,
int sellMax,
int buyMaxPrice,
int buyMax,
NetworkDistantPlayer provider)
- client exchange constructor
- Parameters:
sellPrice
- sellMax
- buyMaxPrice
- buyMax
-
ExchangeClient
public ExchangeClient(ClientGame game,
NetworkDistantPlayer provider)
- Parameters:
provider
-
getProvider
public NetworkDistantPlayer getProvider()
- Returns:
changeValues
public boolean changeValues(int sellPrice,
int sellMax,
int buyMaxPrice,
int buyMax)
- change exchange properties
- Overrides:
changeValues
in class Exchange
- Parameters:
sellPrice
- sellMax
- buyMaxPrice
- buyMax
-
- Returns:
- true if there is some changes