dd.hurricane.proposals.turn2
Class Downtown

java.lang.Object
  extended bydd.sim.SimObject
      extended bydd.sim.Proposal
          extended bydd.hurricane.proposals.turn2.Downtown
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Downtown
extends Proposal

Rebuild Downton proposal. This is a proposal for turn 2 of the DLUG hurricane game.

Author:
Seth McGinnis
See Also:
Serialized Form

Field Summary
static java.lang.String[] downtownSites
           
 
Fields inherited from class dd.sim.Proposal
costTable, MAYBE_PHRASE, OPPOSE, OPPOSE_PHRASE, STATUS_AUTOFAIL, STATUS_FAILED, STATUS_INFORMATIONAL, STATUS_KEY, STATUS_NEW, STATUS_PASSED, STATUS_PLAYED, STATUS_UNPICKED, STATUS_WITHDRAWN, SUPPORT, SUPPORT_PHRASE
 
Fields inherited from class dd.sim.SimObject
attributes
 
Constructor Summary
Downtown()
           
 
Method Summary
 void enact(GameRoot root, java.util.Random rng)
          Converts "destroyed" LU in the downtown area (cells <1,7>, <2,6>, and <2,7>) to their previous LU.
 
Methods inherited from class dd.sim.Proposal
addConfigParameter, calculateCosts, castVote, compareTo, configure, configure, configure, configureFromSum, duplicate, enact, enumerateConfigurations, getAbbrev, getConfigParameters, getConfigSum, getDebriefingText, getDescription, getEconCost, getFamily, getLegendIcons, getMapIcons, getOwnerID, getPlayerOpinion, getPlayerOpinion, getPlayerVotesAgainst, getPlayerVotesFor, getProposalID, getSocialCost, getStatus, getTitle, getTurn, getVotesAgainst, getVotesFor, getVoteTally, isActive, isDuplicate, main, ownedBy, resetVoteTally, setDescription, setFamily, setOwnerID, setPlayerOpinion, setProposalID, setStatus, setTitle, setTurn
 
Methods inherited from class dd.sim.SimObject
addPropertyChangeListener, addPropertyChangeListener, debug, error, fatal, filter, filter, firePropertyChange, getAttribute, getAttribute, getAttributes, getGlobalAttribute, getObjectAttribute, getObjectAttribute, incrementAttribute, incrementAttribute, isSet, log, out, readFromXML, readFromXML, removeAttribute, removePropertyChangeListener, setAttribute, setAttribute, setAttribute, setAttributes, setGlobalAttribute, warning, writeText, writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

downtownSites

public static final java.lang.String[] downtownSites
Constructor Detail

Downtown

public Downtown()
Method Detail

enact

public void enact(GameRoot root,
                  java.util.Random rng)
Converts "destroyed" LU in the downtown area (cells <1,7>, <2,6>, and <2,7>) to their previous LU. Sets the attribute "mixedUse" on the landuse layer if that option was chosen.

Overrides:
enact in class Proposal