dd.hurricane.proposals.turn1
Class OpenSpace

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

public class OpenSpace
extends Proposal

Acquire Open Space proposal. This is a proposal for turn 1 of the DLUG hurricane game.

Author:
Seth McGinnis
See Also:
Serialized Form

Field Summary
static java.lang.String[] shoreSites
           
static java.lang.String[] wetlandSites
           
 
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
OpenSpace()
           
 
Method Summary
 void enact(GameRoot root, java.util.Random rng)
          Converts LU "none" to LU "open" in the target cells.
 
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

shoreSites

public static final java.lang.String[] shoreSites

wetlandSites

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

OpenSpace

public OpenSpace()
Method Detail

enact

public void enact(GameRoot root,
                  java.util.Random rng)
Converts LU "none" to LU "open" in the target cells. Decreases condo growth by 0.05 (the OS locations are where developers most want to build.) Shore focus targets cells <4,8> through <9,8>. Wetlands focus targets <4,3-4>, <3-6,5>, and <7-8,4>. If the "require" option is chosen, each site has a 90% chance of converting; otherwise, it's only 50%. If TDR is chosen, the attribute "relocate" is set in cell <2,7> on the landuse layer.

Overrides:
enact in class Proposal