dd.hurricane.proposals.turn1
Class Sewers

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

public class Sewers
extends Proposal

Water and Sewer Extensions proposal. This is a proposal for turn 1 of the DLUG hurricane game.

Author:
Seth McGinnis
See Also:
Serialized Form

Field Summary
 
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
Sewers()
           
 
Method Summary
 void enact(GameRoot root, java.util.Random rng)
          Applies a global waterExposureBonus on the hazard layer of -0.1, and an ecology bonus of +0.1 on the landuse layer.
 
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
 

Constructor Detail

Sewers

public Sewers()
Method Detail

enact

public void enact(GameRoot root,
                  java.util.Random rng)
Applies a global waterExposureBonus on the hazard layer of -0.1, and an ecology bonus of +0.1 on the landuse layer. If improved facilities are chosen, the "SewagePlant" attribute is defined on the landuse layer and growth is increased by 0.1 for condos and houses. The restrict septic tanks option defines "RestrictSeptic" and sets a relocate attribute (to <2,7>) for those cells which have "noSewer" defined. For the restrictive and liberal provisioning options, the "noSewer" attribute is defined on those cells outside the provisioning areas and undefined within. Finally, liberal provisioning imposes an upkeep cost of 2 money.

Overrides:
enact in class Proposal