|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdd.sim.SimObject
dd.hurricane.Scenario
The scenario object handles all the setup associated with starting a turn. It has a publicly-accessible ArrayList named "proposals" that holds the list of proposals for the current turn. ... [more to come]
Field Summary |
Fields inherited from class dd.sim.SimObject |
attributes |
Constructor Summary | |
Scenario()
|
Method Summary | |
float |
getBaseEconBudget()
Gets the base economic budget for this turn. |
float |
getBaseSocialBudget()
Gets the base social budget for this turn. |
float |
getCurrentEconBudget()
Gets the current economic budget for this turn. |
float |
getCurrentSocialBudget()
Gets the current social budget for this turn. |
Briefing |
getDebriefing()
|
java.lang.String |
getIntro()
|
Map |
getMap()
|
java.lang.String |
getName()
|
int |
getNumTurns()
|
int |
getTurn()
|
void |
loadMap(java.lang.String fileName)
|
static void |
main(java.lang.String[] args)
|
Briefing |
nextTurn(GameRoot root,
java.util.Random rng)
|
static CostTable |
readCostTable()
|
static Proposal |
readProposal(java.lang.String filename)
|
java.lang.String |
roleForPlayer(int turnNumber)
|
void |
setBudget(float econ,
float social)
Set the budget for this turn. |
void |
setCurrentEconBudget(int budget)
|
void |
setCurrentSocialBudget(int budget)
|
void |
setMap(Map map)
|
void |
spendBudget(float econCost,
float socialCost)
Spends from the current budget. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Scenario()
Method Detail |
public void loadMap(java.lang.String fileName)
public java.lang.String getIntro()
public Briefing nextTurn(GameRoot root, java.util.Random rng)
public Briefing getDebriefing()
public int getTurn()
public int getNumTurns()
public java.lang.String getName()
public java.lang.String roleForPlayer(int turnNumber)
public float getBaseEconBudget()
public float getBaseSocialBudget()
public float getCurrentEconBudget()
public void setCurrentEconBudget(int budget)
public float getCurrentSocialBudget()
public void setCurrentSocialBudget(int budget)
public void setBudget(float econ, float social)
public void spendBudget(float econCost, float socialCost)
public Map getMap()
public void setMap(Map map)
public static Proposal readProposal(java.lang.String filename)
public static CostTable readCostTable()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |