|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.triplea.delegate.TechnologyDelegate
public class TechnologyDelegate
Logic for dealing with player tech rolls. This class requires the TechActivationDelegate which actually activates the tech.
| Constructor Summary | |
|---|---|
TechnologyDelegate()
Creates new TechnolgoyDelegate |
|
| Method Summary | |
|---|---|
void |
end()
Called before the delegate will stop running. |
java.util.Map<PlayerID,java.util.Collection> |
getAdvances()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getName()
|
java.lang.Class<ITechDelegate> |
getRemoteType()
Get the remote type of this delegate for use by a RemoteMessenger. |
void |
initialize(java.lang.String name,
java.lang.String displayName)
|
void |
loadState(java.io.Serializable state)
Loads the delegates state |
TechResults |
rollTech(int techRolls,
TechAdvance techToRollFor,
int newTokens)
|
java.io.Serializable |
saveState()
Returns the state of the Delegate. |
void |
start(IDelegateBridge aBridge,
GameData gameData)
Called before the delegate will run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TechnologyDelegate()
| Method Detail |
|---|
public void initialize(java.lang.String name,
java.lang.String displayName)
initialize in interface IDelegate
public void start(IDelegateBridge aBridge,
GameData gameData)
start in interface IDelegatepublic java.util.Map<PlayerID,java.util.Collection> getAdvances()
public TechResults rollTech(int techRolls,
TechAdvance techToRollFor,
int newTokens)
rollTech in interface ITechDelegatetechRolls - - the number of tech rolls
public java.lang.String getName()
getName in interface IDelegatepublic java.lang.String getDisplayName()
getDisplayName in interface IDelegatepublic void end()
end in interface IDelegatepublic java.io.Serializable saveState()
saveState in interface IDelegatepublic void loadState(java.io.Serializable state)
loadState in interface IDelegatepublic java.lang.Class<ITechDelegate> getRemoteType()
IDelegate
getRemoteType in interface IDelegate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||