|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.triplea.delegate.PurchaseDelegate
games.strategy.triplea.delegate.BidPurchaseDelegate
public class BidPurchaseDelegate
Title:
Description:
Copyright: Copyright (c) 2002
Company:
| Constructor Summary | |
|---|---|
BidPurchaseDelegate()
|
|
| Method Summary | |
|---|---|
protected boolean |
canAfford(IntegerMap<Resource> costs,
PlayerID player)
subclasses can over ride this method to use different restrictions as to what a player can buy |
static boolean |
doesPlayerHaveBid(GameData data,
PlayerID player)
|
void |
end()
Called before the delegate will stop running. |
void |
loadState(java.io.Serializable state)
Loads the delegates state |
protected java.lang.String |
removeFromPlayer(PlayerID player,
IntegerMap<Resource> resources,
CompositeChange change,
java.util.Collection<Unit> units)
|
java.io.Serializable |
saveState()
Returns the state of the Delegate. |
void |
start(IDelegateBridge bridge,
GameData data)
Called before the delegate will run. |
| Methods inherited from class games.strategy.triplea.delegate.PurchaseDelegate |
|---|
getData, getDisplayName, getName, getRemoteType, initialize, purchase, purchaseRepair |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BidPurchaseDelegate()
| Method Detail |
|---|
public static boolean doesPlayerHaveBid(GameData data,
PlayerID player)
protected boolean canAfford(IntegerMap<Resource> costs,
PlayerID player)
canAfford in class PurchaseDelegate
public void start(IDelegateBridge bridge,
GameData data)
PurchaseDelegate
start in interface IDelegatestart in class PurchaseDelegate
protected java.lang.String removeFromPlayer(PlayerID player,
IntegerMap<Resource> resources,
CompositeChange change,
java.util.Collection<Unit> units)
removeFromPlayer in class PurchaseDelegatepublic void end()
end in interface IDelegateend in class PurchaseDelegatepublic java.io.Serializable saveState()
saveState in interface IDelegatesaveState in class PurchaseDelegatepublic void loadState(java.io.Serializable state)
loadState in interface IDelegateloadState in class PurchaseDelegate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||