From: <ev...@us...> - 2011-03-29 13:14:06
|
Revision: 1503 http://rails.svn.sourceforge.net/rails/?rev=1503&view=rev Author: evos Date: 2011-03-29 13:13:57 +0000 (Tue, 29 Mar 2011) Log Message: ----------- Contribution by Bill Rosgen: Private purchasing rules are now all defined as PrivateCompany attributes with the new <Tradeable> tag. This includes the price factor limits, which were formerly defined with the (buying) major Company type. The 1830 B&O private is now correctly excluded. Modified Paths: -------------- trunk/18xx/data/1830/CompanyManager.xml trunk/18xx/data/1856/CompanyManager.xml trunk/18xx/data/1870/CompanyManager.xml trunk/18xx/data/1889/CompanyManager.xml trunk/18xx/data/18AL/CompanyManager.xml trunk/18xx/data/18Kaas/CompanyManager.xml trunk/18xx/data/18VA/CompanyManager.xml trunk/18xx/data/GamesList.xml trunk/18xx/rails/game/OperatingRound.java trunk/18xx/rails/game/PrivateCompany.java trunk/18xx/rails/game/PrivateCompanyI.java trunk/18xx/rails/game/PublicCompany.java trunk/18xx/rails/game/PublicCompanyI.java trunk/18xx/rails/util/Tag.java Added Paths: ----------- trunk/18xx/data/18GA/ trunk/18xx/data/18GA/CompanyManager.xml trunk/18xx/data/18GA/Game.xml trunk/18xx/data/18GA/Map.xml trunk/18xx/data/18GA/StockMarket.xml trunk/18xx/data/18GA/TileSet.xml trunk/18xx/data/18GA/Tiles.xml trunk/18xx/data/18JR/ trunk/18xx/data/18JR/CompanyManager.xml trunk/18xx/data/18JR/Game.xml trunk/18xx/data/18JR/Map.xml trunk/18xx/data/18JR/StockMarket.xml trunk/18xx/data/18JR/TileSet.xml trunk/18xx/data/18JR/Tiles.xml Modified: trunk/18xx/data/1830/CompanyManager.xml =================================================================== --- trunk/18xx/data/1830/CompanyManager.xml 2011-03-26 20:56:14 UTC (rev 1502) +++ trunk/18xx/data/1830/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -4,9 +4,11 @@ <ClosingConditions> <Phase>5</Phase> </ClosingConditions> + <Tradeable toCompany="yes" lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <Tradeable toPlayer="yes"/> </CompanyType> <CompanyType name="Public" class="rails.game.PublicCompany"> - <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <CanBuyPrivates/> <PoolPaysOut/> <Float percentage="60"/> <ShareUnit percentage="10"/> @@ -64,6 +66,7 @@ longname="Baltimore & Ohio"> <Info key="ComesWithPresidency" parm="B&O,20"/> <Blocking hex="I13,I15"/> + <Tradeable toCompany="no"/> </Company> <!-- Note two supported colour specification formats: Modified: trunk/18xx/data/1856/CompanyManager.xml =================================================================== --- trunk/18xx/data/1856/CompanyManager.xml 2011-03-26 20:56:14 UTC (rev 1502) +++ trunk/18xx/data/1856/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -1,9 +1,10 @@ <?xml version="1.0"?> <CompanyManager> <CompanyType name="Private" class="rails.game.PrivateCompany"> + <Tradeable toCompany="yes" lowerPriceFactor="0.5" upperPriceFactor="2.0"/> </CompanyType> <CompanyType name="Public" class="rails.game.specific._1856.PublicCompany_1856"> - <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <CanBuyPrivates/> <PoolPaysOut/> <ShareUnit percentage="10"/> <Certificate type="President" shares="2"/> Modified: trunk/18xx/data/1870/CompanyManager.xml =================================================================== --- trunk/18xx/data/1870/CompanyManager.xml 2011-03-26 20:56:14 UTC (rev 1502) +++ trunk/18xx/data/1870/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -3,10 +3,11 @@ <CompanyManager> <CompanyType name="Private" class="rails.game.PrivateCompany"> + <Tradeable toCompany="yes" lowerPriceFactor="0.5" upperPriceFactor="2.0"/> </CompanyType> <CompanyType name="Public" class="rails.game.PublicCompany"> - <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <CanBuyPrivates/> <IPOPaysOut/> <Float percentage="60"/> <CanSplitDividend/> Modified: trunk/18xx/data/1889/CompanyManager.xml =================================================================== --- trunk/18xx/data/1889/CompanyManager.xml 2011-03-26 20:56:14 UTC (rev 1502) +++ trunk/18xx/data/1889/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -2,10 +2,11 @@ <CompanyManager> <!-- Specific PrivateCompany to avoid closing of Uno-Takamatsu Ferry --> <CompanyType name="Private" class="rails.game.PrivateCompany"> + <Tradeable toCompany="yes" lowerPriceFactor="0.5" upperPriceFactor="2.0"/> </CompanyType> <CompanyType name="Public" class="rails.game.PublicCompany"> <IfOption name="BeginnerGame" value="no"> - <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <CanBuyPrivates/> </IfOption> <PoolPaysOut/> <Float percentage="50"/> Modified: trunk/18xx/data/18AL/CompanyManager.xml =================================================================== --- trunk/18xx/data/18AL/CompanyManager.xml 2011-03-26 20:56:14 UTC (rev 1502) +++ trunk/18xx/data/18AL/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -1,9 +1,10 @@ <?xml version="1.0"?> <CompanyManager> <CompanyType name="Private" class="rails.game.PrivateCompany"> + <Tradeable toCompany="yes" lowerPriceFactor="0.5" upperPriceFactor="1.5"/> </CompanyType> <CompanyType name="Public" class="rails.game.PublicCompany"> - <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="1.5"/> + <CanBuyPrivates/> <PoolPaysOut/> <Float percentage="60"/> <ShareUnit percentage="10"/> Added: trunk/18xx/data/18GA/CompanyManager.xml =================================================================== --- trunk/18xx/data/18GA/CompanyManager.xml (rev 0) +++ trunk/18xx/data/18GA/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,49 @@ +<?xml version="1.0"?> +<CompanyManager> + <CompanyType name="Private" class="rails.game.PrivateCompany"> + </CompanyType> + <CompanyType name="Public" class="rails.game.PublicCompany"> + <PoolPaysOut/> + <Float percentage="60"/> + <ShareUnit percentage="10"/> + <Certificate type="President" shares="2"/> + <Certificate shares="1" number="8"/> + <BaseTokens> + <LayCost method="sequence" cost="0,40,100"/> + </BaseTokens> + <Trains number="4,4,3,2"/> + <CanUseSpecialProperties/> + </CompanyType> + <Company name="LTRR" type="Private" basePrice="20" revenue="5" longname="Lexington Terminal RR"/> + <Company name="MRC" type="Private" basePrice="40" revenue="10" longname="Midland Railroad Co."/> + <Company name="WSRR" type="Private" basePrice="70" revenue="15" longname="Waycross & Southern RR"/> + <Company name="OSRR" type="Private" basePrice="100" revenue="20" longname="Ocilla Southern RR"/> + <Company name="MBRR" type="Private" basePrice="150" revenue="25" longname="Macon & Birmingham RR"/> + + <Company name="ACL" type="Public" tokens="4" fgColour="FFFFFF" bgColour="1F1A17" longname="Atlantic Coast Line"> + <Home hex="J12" /> + </Company> + <Company name="CoG" type="Public" tokens="4" fgColour="FFFFFF" bgColour="CC3366" longname="Central of Georgia"> + <Home hex="F6" /> + </Company> + <Company name="GR" type="Public" tokens="4" fgColour="FFFFFF" bgColour="219C29" longname="Georgia Railroad"> + <Home hex="D10" /> + </Company> + <Company name="G&F" type="Public" tokens="2" fgColour="000000" bgColour="75C4F0" longname="Georgia & Florida RR"> + <Home hex="H4" /> + </Company> + <Company name="SAL" type="Public" tokens="3" fgColour="000000" bgColour="F7C400" longname="Seaboard Air Line"> + <Home hex="G13" /> + </Company> + <Company name="W&AR" type="Public" tokens="2" fgColour="FFFFFF" bgColour="994778" longname="Western & Atlantic Railroad"> + <Home hex="D4" /> + </Company> + <StartPacket roundClass="rails.game.StartRound_1830"> + <Bidding initial="5" minimum="5" increment="1" /> + <Item name="LTRR" type="Private" basePrice="20" /> + <Item name="MRC" type="Private" basePrice="40" /> + <Item name="WSRR" type="Private" basePrice="70" /> + <Item name="OSRR" type="Private" basePrice="100" /> + <Item name="MBRR" type="Private" basePrice="150" /> + </StartPacket> +</CompanyManager> \ No newline at end of file Property changes on: trunk/18xx/data/18GA/CompanyManager.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18GA/Game.xml =================================================================== --- trunk/18xx/data/18GA/Game.xml (rev 0) +++ trunk/18xx/data/18GA/Game.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,84 @@ +<?xml version="1.0"?> +<ComponentManager> + <Component name="GameManager" class="rails.game.GameManager"> + <Game name="18GA"/> + <GameParameters> + <PlayerShareLimit percentage="60"/> + <BankPoolLimit percentage="50"/> + <StockRound> + <NoSaleInFirstSR/> + </StockRound> + </GameParameters> + <GuiClasses> + </GuiClasses> + <EndOfGame> + <Bankruptcy/> + <BankBreaks limit="0" finish="currentOR"/> + <!-- "Runs out"; when "broken", -1 is the limit --> + <!-- Also when the share value reaches $300; this is configured in teh stock market XML --> + </EndOfGame> + </Component> + <Component name="PlayerManager" class="rails.game.PlayerManager"> + <Players number="3" cash="600" certLimit="15"/> + <Players number="4" cash="450" certLimit="12"/> + <Players number="5" cash="360" certLimit="10"/> + </Component> + <Component name="Bank" class="rails.game.Bank"> + <Bank amount="8000"/> + </Component> + <Component name="TileManager" class="rails.game.TileManager" + file="TileSet.xml"/> + <Component name="Map" class="rails.game.MapManager" file="Map.xml"/> + <Component name="CompanyManager" class="rails.game.CompanyManager" + file="CompanyManager.xml"/> + <Component name="StockMarket" class="rails.game.StockMarket" + file="StockMarket.xml"/> + <Component name="TrainManager" class="rails.game.TrainManager"> + <Train name="2" majorStops="2" cost="100" amount="5"/> + <Train name="3" majorStops="3" cost="180" amount="4" startPhase="3"/> + <Train name="4" majorStops="4" cost="300" amount="3" startPhase="4" + rustedTrain="2" > + <IfOption name="Obsolete4Trains" value="yes"> + <Attributes obsoleting="yes"/> + </IfOption> + <IfOption name="Obsolete4Trains" value="no"> + <Attributes obsoleting="no"/> + </IfOption> + </Train>/> + <Train name="5" majorStops="5" cost="450" amount="2" startPhase="5"/> + <Train name="6" majorStops="6" cost="630" amount="2" startPhase="6" + rustedTrain="3"/> + <Train name="8" majorStops="8" cost="800" amount="5" startPhase="8" + rustedTrain="4"/> + </Component> + <Component name="PhaseManager" class="rails.game.PhaseManager"> + <Phase name="2" > + <Tiles colour="yellow"/> + <OperatingRounds number="1"/> + <Trains onePerTurn="yes" tradingAllowed="yes"/> + </Phase> + <Phase name="3"> + <Tiles colour="yellow,green"/> + <Privates sellingAllowed="yes"/> + <OperatingRounds number="2"/> + </Phase> + <Phase name="4"> + <Tiles colour="yellow,green"/> + <Trains onePerTurn="no"/> + </Phase> + <Phase name="5"> + <Tiles colour="yellow,green,brown"/> + <OperatingRounds number="3"/> + <Privates close="yes"/> + <OffBoardRevenue step="2"/> + </Phase> + <Phase name="6"> + <Tiles colour="yellow,green,brown"/> + </Phase> + <Phase name="8"> + <Tiles colour="yellow,green,brown,grey"/> + </Phase> + </Component> + <Component name="RevenueManager" class="rails.algorithms.RevenueManager"> + </Component> +</ComponentManager> \ No newline at end of file Property changes on: trunk/18xx/data/18GA/Game.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18GA/Map.xml =================================================================== --- trunk/18xx/data/18GA/Map.xml (rev 0) +++ trunk/18xx/data/18GA/Map.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,117 @@ +<Map mapClass="rails.ui.swing.hexmap.EWHexMap" tileOrientation="EW" letterOrientation="vertical" even="B"> + <Hex name="A3" tile="-902" orientation="1" value="30,60" city="Chattanooga" /> + + <Hex name="B2" tile="0" cost="60"> + <Symbols> + <Symbol name="mountain" where="tp2SideA" anchorX="center" anchorY="center" fromPhase="0" toPhase="0" /> + </Symbols> + </Hex> + <Hex name="B4" tile="0" /> + <Hex name="B6" tile="0" cost="60"> + <Symbols> + <Symbol name="mountain" where="tp2SideA" anchorX="center" anchorY="center" fromPhase="0" toPhase="0" /> + </Symbols> + </Hex> + <Hex name="B8" tile="0" cost="60"> + <Symbols> + <Symbol name="mountain" where="tp2SideA" anchorX="center" anchorY="center" fromPhase="0" toPhase="0" /> + </Symbols> + </Hex> + <Hex name="B10" tile="-902" orientation="2" value="30,40" city="Greeneville" /> + + <Hex name="C1" tile="0" cost="60"> + <Symbols> + <Symbol name="mountain" where="tp2SideA" anchorX="center" anchorY="center" fromPhase="0" toPhase="0" /> + </Symbols> + </Hex> + <Hex name="C3" tile="-3008" city="Rome" /> + <Hex name="C5" tile="0" cost="20"> + <River from="center" to="D4" /> + </Hex> + <Hex name="C7" tile="0" /> + <Hex name="C9" tile="0" /> + + <Hex name="D2" tile="0" /> + <Hex name="D4" tile="-3008" city="Atlanta" /> + <Hex name="D6" tile="0" /> + <Hex name="D8" tile="0" /> + <Hex name="D10" tile="-3008" city="Augusta" /> + + <Hex name="E1" tile="-1143" orientation="1" value="30,40" city="Montgomery" /> + <Hex name="E3" tile="0" cost="40"> + <River from="D4" to="F2" /> + </Hex> + <Hex name="E5" tile="0" /> + <Hex name="E7" tile="-1" cost="20" city="Milledgeville"> + <River from="center" to="F8" /> + </Hex> + <Hex name="E9" tile="0" /> + <Hex name="E11" tile="0" /> + + <Hex name="F2" tile="0" cost="40"> + <River from="E3" to="G3" /> + </Hex> + <Hex name="F4" tile="0"> + <Private name="MBRR" /> + </Hex> + <Hex name="F6" tile="-3008" city="Macon" /> + <Hex name="F8" tile="0" cost="20"> + <River from="E7" to="G9" /> + </Hex> + <Hex name="F10" tile="0" /> + <Hex name="F12" tile="0" cost="40"> + <Symbols> + <Symbol name="swamp" where="tpCenter" anchorX="center" anchorY="bottom" fromPhase="0" toPhase="0" /> + </Symbols> + <Private name="MRC" /> + </Hex> + + <Hex name="G1" tile="0"> + <River from="G3" to="H2" /> + </Hex> + <Hex name="G3" tile="-3008" cost="40" city="Columbus"> + <River from="F2" to="G1" /> + </Hex> + <Hex name="G5" tile="0" /> + <Hex name="G7" tile="0"> + <Private name="OSR" /> + </Hex> + <Hex name="G9" tile="0" cost="20"> + <River from="F8" to="H10" /> + </Hex> + <Hex name="G11" tile="-1" city="Statesboro" /> + <Hex name="G13" tile="-3008" city="Savannah" /> + + <Hex name="H2" tile="0" cost="40"> + <River from="G1" to="I3" /> + </Hex> + <Hex name="H4" tile="-3008" city="Albany" /> + <Hex name="H6" tile="0" /> + <Hex name="H8" tile="0" /> + <Hex name="H10" tile="0" cost="20"> + <River from="G9" to="H12" /> + </Hex> + <Hex name="H12" tile="0" cost="20"> + <River from="H10" to="H14" /> + </Hex> + + <Hex name="I3" tile="0" cost="40"> + <River from="H2" to="J4" /> + </Hex> + <Hex name="I5" tile="0" /> + <Hex name="I7" tile="-1" city="Valdosta" /> + <Hex name="I9" tile="-3008" city="Waycross"> + <Private name="WSRR" /> + </Hex> + <Hex name="I11" tile="-3008" city="Brunswick" /> + + <Hex name="J4" tile="-1143" value="20,50" city="Tallahassee" /> + <Hex name="J6" tile="0" /> + <Hex name="J8" tile="0" /> + <Hex name="J10" tile="0"> + <Symbols> + <Symbol name="swamp" where="tpCenter" anchorX="center" anchorY="bottom" fromPhase="0" toPhase="0" /> + </Symbols> + </Hex> + <Hex name="J12" tile="-912" orientation="3" value="30,60" city="Jacksonville" /> +</Map> \ No newline at end of file Property changes on: trunk/18xx/data/18GA/Map.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18GA/StockMarket.xml =================================================================== --- trunk/18xx/data/18GA/StockMarket.xml (rev 0) +++ trunk/18xx/data/18GA/StockMarket.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,104 @@ +<StockMarket type="rectangular"> + <StockSpaceType name="yellow" colour="FFFF00"> + <NoCertLimit /> + </StockSpaceType> + + <StockSpace name="A1" price="60" /> + <StockSpace name="A2" price="55" /> + <StockSpace name="A3" price="50" type="yellow" /> + <StockSpace name="A4" price="45" type="yellow" /> + <StockSpace name="A5" price="40" type="yellow" /> + <StockSpace name="A6" price="35" type="yellow" /> + <StockSpace name="A7" price="30" type="yellow" /> + + <StockSpace name="B1" price="70" /> + <StockSpace name="B2" price="60" /> + <StockSpace name="B3" price="55" /> + <StockSpace name="B4" price="50" type="yellow" /> + <StockSpace name="B5" price="45" type="yellow" /> + <StockSpace name="B6" price="40" type="yellow" /> + <StockSpace name="B7" price="35" type="yellow" /> + + <StockSpace name="C1" price="80" /> + <StockSpace name="C2" price="70" /> + <StockSpace name="C3" price="60" /> + <StockSpace name="C4" price="55"> + <StartSpace /> + </StockSpace> + <StockSpace name="C5" price="50" type="yellow" /> + <StockSpace name="C6" price="45" type="yellow" /> + <StockSpace name="C7" price="40" type="yellow" /> + + <StockSpace name="D1" price="90" /> + <StockSpace name="D2" price="80" /> + <StockSpace name="D3" price="70"> + <StartSpace /> + </StockSpace> + <StockSpace name="D4" price="60" /> + <StockSpace name="D5" price="55" /> + <StockSpace name="D6" price="50" type="yellow" /> + <StockSpace name="D7" price="45" type="yellow" /> + + <StockSpace name="E1" price="100" /> + <StockSpace name="E2" price="90"> + <StartSpace /> + </StockSpace> + <StockSpace name="E3" price="80" /> + <StockSpace name="E4" price="70" /> + <StockSpace name="E5" price="60" /> + <StockSpace name="E6" price="55" type="yellow" /> + <StockSpace name="E7" price="50" type="yellow" /> + + <StockSpace name="F1" price="110"> + <StartSpace /> + </StockSpace> + <StockSpace name="F2" price="100" /> + <StockSpace name="F3" price="90" /> + <StockSpace name="F4" price="80" /> + <StockSpace name="F5" price="70" /> + + <StockSpace name="G1" price="120" /> + <StockSpace name="G2" price="110" /> + <StockSpace name="G3" price="100" /> + <StockSpace name="G4" price="90" /> + <StockSpace name="G5" price="80" /> + + <StockSpace name="H1" price="135" /> + <StockSpace name="H2" price="120" /> + <StockSpace name="H3" price="110" /> + <StockSpace name="H4" price="100" /> + <StockSpace name="H5" price="90" /> + + <StockSpace name="I1" price="150" /> + <StockSpace name="I2" price="135" /> + <StockSpace name="I3" price="120" /> + <StockSpace name="I4" price="110" /> + + <StockSpace name="J1" price="170" /> + <StockSpace name="J2" price="150" /> + <StockSpace name="J3" price="135" /> + <StockSpace name="J4" price="120" /> + + <StockSpace name="K1" price="190" /> + <StockSpace name="K2" price="170" /> + <StockSpace name="K3" price="150" /> + <StockSpace name="K4" price="135" /> + + <StockSpace name="L1" price="210" /> + <StockSpace name="L2" price="190" /> + <StockSpace name="L3" price="170" /> + + <StockSpace name="M1" price="230" /> + <StockSpace name="M2" price="210" /> + <StockSpace name="M3" price="100" /> + + <StockSpace name="N1" price="250" /> + <StockSpace name="N2" price="230" /> + + <StockSpace name="O1" price="275" /> + <StockSpace name="O2" price="250" /> + + <StockSpace name="P1" price="300"> + <GameOver /> + </StockSpace> +</StockMarket> Property changes on: trunk/18xx/data/18GA/StockMarket.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18GA/TileSet.xml =================================================================== --- trunk/18xx/data/18GA/TileSet.xml (rev 0) +++ trunk/18xx/data/18GA/TileSet.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,236 @@ +<TileManager tiles="Tiles.xml"> + <!-- Preprinted Tiles--> + + <!-- Empty space --> + <Tile id="0"> + <Upgrade id="7,8,9" /> + </Tile> + + <!-- Dit --> + <Tile id="-1"> + <Upgrade id="3,4,58" /> + </Tile> + + <!-- City --> + <Tile id="-3008"> + <Upgrade id="5,6,57" /> + </Tile> + + <!-- Chattanooga (A3), Greeneville (B10) --> + <Tile id="-902" /> + + <!-- Montgomery (E1), Tallahassee (J4) --> + <Tile id="-1143" /> + + <!-- Jacksonville (J12) --> + <Tile id="-912" /> + + <!-- Atlanta (D4) --> + <Tile id="-4010"> + <Upgrade id="4451" /> + </Tile> + + <!-- Yellow Tiles --> + + <!-- Sharp-curve dit (10) --> + <Tile id="3" quantity="3" > + <Upgrade id="141,142,143" /> + </Tile> + + <!-- Straight dit (10) --> + <Tile id="4" quantity="3"> + <Upgrade id="141,142" /> + </Tile> + + <!-- Sharp-curve city (20) --> + <Tile id="5" quantity="2"> + <Upgrade id="14,15" hex="-D10,-G13" /> + <Upgrade id="4453" hex="D10" /> + <Upgrade id="4454" hex="G13" /> + </Tile> + + <!-- Gentle-curve city (20) --> + <Tile id="6" quantity="2"> + <Upgrade id="14,15" hex="-D10,-G13" /> + <Upgrade id="4453" hex="D10" /> + <Upgrade id="4454" hex="G13" /> + </Tile> + + <!-- Sharp curve --> + <Tile id="7" quantity="5"> + <Upgrade id="26,27,28,29" /> + </Tile> + + <!-- Gentle curve --> + <Tile id="8" quantity="11"> + <Upgrade id="16,17,19,23,24,25,28,29" /> + </Tile> + + <!-- Straight track --> + <Tile id="9" quantity="10"> + <Upgrade id="19,20,23,24,26,27" /> + </Tile> + + <!-- Straight city (20) --> + <Tile id="57" quantity="4"> + <Upgrade id="14,15" hex="-D10,-G13" /> + <Upgrade id="4453" hex="D10" /> + <Upgrade id="4454" hex="G13" /> + </Tile> + + <!-- Gentle-curve dit (10) --> + <Tile id="58" quantity="3"> + <Upgrade id="141,142,143" /> + </Tile> + + <!-- Three dead-end cities (30), exits NW,NE,S, "Atlanta" --> + <Tile id="4451" quantity="1"> + <Upgrade id="4452" /> + </Tile> + + <!-- Green Tiles --> + + <!-- X-shape city (30) --> + <Tile id="14" quantity="4"> + <Upgrade id="63" hex="-F6,-I11" /> + <Upgrade id="4457" hex="I11" /> + <Upgrade id="4458" hex="F6" /> + </Tile> + + <!-- K-shape city (30) --> + <Tile id="15" quantity="4"> + <Upgrade id="63" hex="-F6,-I11" /> + <Upgrade id="4457" hex="I11" /> + <Upgrade id="4458" hex="F6" /> + </Tile> + + <!-- Two tracks crossing, K shape --> + <Tile id="16" quantity="1"> + <Upgrade id="43,70" /> + </Tile> + + <!-- Two tracks non-crossing, )( shape --> + <Tile id="17" quantity="1"> + <Upgrade id="47" /> + </Tile> + + <!-- Two tracks crossing, crossbow shape --> + <Tile id="19" quantity="1"> + <Upgrade id="45,46" /> + </Tile> + + <!-- Two tracks crossing, X shape --> + <Tile id="20" quantity="1"> + <Upgrade id="44,47" /> + </Tile> + + <!-- Switch, straight and gentle-curve right --> + <Tile id="23" quantity="4"> + <Upgrade id="41,43,45,47" /> + </Tile> + + <!-- Switch, straight and gentle-curve left --> + <Tile id="24" quantity="4"> + <Upgrade id="42,43,46,47" /> + </Tile> + + <!-- Switch, two gentle curves --> + <Tile id="25" quantity="1"> + <Upgrade id="40,45,46" /> + </Tile> + + <!-- Switch, straight and sharp-curve right --> + <Tile id="26" quantity="1"> + <Upgrade id="42,44,45" /> + </Tile> + + <!-- Switch, straight and sharp-curve left --> + <Tile id="27" quantity="1"> + <Upgrade id="41,44,46" /> + </Tile> + + <!-- Switch, sharp and gentle curves right --> + <Tile id="28" quantity="2"> + <Upgrade id="39,43,70" /> + </Tile> + + <!-- Switch, sharp and gentle curves left --> + <Tile id="29" quantity="2"> + <Upgrade id="39,43,70" /> + </Tile> + + <!-- Dit (10), exits N,NE,S --> + <Tile id="141" quantity="2" /> + + <!-- Dit (10), exits N,NW,S --> + <Tile id="142" quantity="2" /> + + <!-- Dit (10), exits N,NW,NE --> + <Tile id="143" quantity="2" /> + + <!-- Three straight cities (20), crossing, "Atlanta" --> + <Tile id="4452" quantity="1"> + <Upgrade id="4455" /> + </Tile> + + <!-- K-shape city (30), "Augusta" --> + <Tile id="4453" quantity="1"> + <Upgrade id="4456" /> + </Tile> + + <!-- City (30), exits N,NW,SW, "Savannah" --> + <Tile id="4454" quantity="1"> + <Upgrade id="4459" /> + </Tile> + + <!-- Brown Tiles --> + + <!-- "Delta" interchange, exits N,NE,SE --> + <Tile id="39" quantity="2" /> + + <!-- "Delta" interchange, exits NW,NE,S --> + <Tile id="40" quantity="1" /> + + <!-- "Delta" interchange, exits N,NE,S --> + <Tile id="41" quantity="3" /> + + <!-- "Delta" interchange, exits N,NW,S --> + <Tile id="42" quantity="3" /> + + <!-- Interchange, tracks N-S, NE-SE, N-SE, S-NE --> + <Tile id="43" quantity="2" /> + + <!-- Interchange, tracks N-S, NW-SE, N-NW, S-SE --> + <Tile id="44" quantity="1" /> + + <!-- Interchange, tracks N-S, NW-NE, N-NW, S-NE --> + <Tile id="45" quantity="2" /> + + <!-- Interchange, tracks N-S, NW-NE, N-NE, S-NW --> + <Tile id="46" quantity="2" /> + + <!-- Interchange, tracks N-S, NW-SE, N-SE, S-NW --> + <Tile id="47" quantity="2" /> + + <!-- 6-way city (40) --> + <Tile id="63" quantity="4" /> + + <!-- Interchange, tracks N-SE, S-NE, N-NE, S-SE --> + <Tile id="70" quantity="1" /> + + <!-- Three straight cities (70), crossing, "Atlanta" --> + <Tile id="4455" quantity="1" /> + + <!-- K-shape city (50), "Augusta" --> + <Tile id="4456" quantity="1" /> + + <!-- 5-way city (40), "Brunswick" --> + <Tile id="4457" quantity="1" /> + + <!-- 5-way city (50), "Macon" --> + <Tile id="4458" quantity="1" /> + + <!-- City (60), exits N,NW,SW, "Savannah" --> + <Tile id="4459" quantity="1" /> + +</TileManager> Property changes on: trunk/18xx/data/18GA/TileSet.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18GA/Tiles.xml =================================================================== --- trunk/18xx/data/18GA/Tiles.xml (rev 0) +++ trunk/18xx/data/18GA/Tiles.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,284 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Tiles> + <Tile colour="white" id="0" name="empty" /> + <Tile colour="white" id="-1" name="1 village"> + <Station id="city1" position="002" type="Town" /> + </Tile> + <Tile colour="white" id="-10" name="1 city"> + <Station id="city1" position="302" slots="1" type="City" /> + </Tile> + <Tile colour="fixed" id="-111" name="Meridian"> + <Station id="city1" position="0" slots="2" type="City" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="fixed" id="-112" name="Tupelo"> + <Station id="city1" position="0" slots="1" type="City" value="30" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="fixed" id="-113" name="Oxmoor"> + <Station id="city1" position="0" slots="1" type="City" value="30" /> + <Track from="city1" gauge="normal" to="side5" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="fixed" id="-3" name="MF 3"> + <Station id="city1" position="252" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="red" id="-901" name="OM 1 way"> + <Station id="city1" position="0" type="OffMapCity" value="-1" /> + <Track from="city1" gauge="normal" to="side2" /> + </Tile> + <Tile colour="red" id="-902" name="OM 2 way"> + <Station id="city1" position="0" type="OffMapCity" value="-1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side1" /> + </Tile> + <Tile colour="red" id="-912" name="OMCity-2"> + <Station id="city1" position="0" slots="1" type="OffMapCity" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + </Tile> + <Tile colour="red" id="-913" name="OMCity-3"> + <Station id="city1" position="0" slots="1" type="OffMapCity" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="yellow" id="3" name="3"> + <Station id="city1" position="352" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + </Tile> + <Tile colour="yellow" id="4" name="4"> + <Station id="city1" position="0" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side0" /> + </Tile> + <Tile colour="yellow" id="5" name="5"> + <Station id="city1" position="0" slots="1" type="City" value="20" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + </Tile> + <Tile colour="yellow" id="6" name="6"> + <Station id="city1" position="0" slots="1" type="City" value="20" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side2" /> + </Tile> + <Tile colour="yellow" id="7" name="7"> + <Track from="side3" gauge="normal" to="side4" /> + </Tile> + <Tile colour="yellow" id="8" name="8"> + <Track from="side3" gauge="normal" to="side5" /> + </Tile> + <Tile colour="yellow" id="9" name="9"> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="yellow" id="57" name="57"> + <Station id="city1" position="0" slots="1" type="City" value="20" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side0" /> + </Tile> + <Tile colour="yellow" id="58" name="58"> + <Station id="city1" position="401" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side5" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="yellow" id="1441" name="441"> + <Station id="city1" position="0" slots="1" type="City" value="10" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="yellow" id="445" name="445"> + <Station id="city1" position="0" type="Town" value="20" /> + <Track from="city1" gauge="normal" to="side5" /> + <Track from="city1" gauge="normal" to="side3" /> + </Tile> + <Tile colour="green" id="14" name="14"> + <Station id="city1" position="0" slots="2" type="City" value="30" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="15" name="15"> + <Station id="city1" position="0" slots="2" type="City" value="30" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + <Track from="city1" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="16" name="16"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side4" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="17" name="17"> + <Track from="side0" gauge="normal" to="side2" /> + <Track from="side3" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="19" name="19"> + <Track from="side5" gauge="normal" to="side1" /> + <Track from="side0" gauge="normal" to="side3" /> + </Tile> + <Tile colour="green" id="20" name="20"> + <Track from="side1" gauge="normal" to="side4" /> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="23" name="23"> + <Track from="side4" gauge="normal" to="side0" /> + <Track from="side0" gauge="normal" to="side3" /> + </Tile> + <Tile colour="green" id="24" name="24"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="25" name="25"> + <Track from="side1" gauge="normal" to="side3" /> + <Track from="side3" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="26" name="26"> + <Track from="side5" gauge="normal" to="side0" /> + <Track from="side0" gauge="normal" to="side3" /> + </Tile> + <Tile colour="green" id="27" name="27"> + <Track from="side3" gauge="normal" to="side4" /> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="green" id="28" name="28"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side4" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="29" name="29"> + <Track from="side3" gauge="normal" to="side4" /> + <Track from="side3" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="141" name="141"> + <Station id="city1" position="0" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="142" name="142"> + <Station id="city1" position="0" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="143" name="143"> + <Station id="city1" position="0" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + </Tile> + <Tile colour="green" id="144" name="144"> + <Station id="city1" position="0" type="Town" value="10" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side4" /> + </Tile> + <Tile colour="green" id="1442" name="442"> + <Station id="city1" position="0" slots="2" type="City" value="30" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="1443" name="443"> + <Station id="city1" position="0" slots="2" type="City" value="40" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="green" id="-3008" name="-3008"> + </Tile> + <Tile colour="green" id="-1143" name="-1143"> + </Tile> + <Tile colour="brown" id="39" name="39"> + <Track from="side3" gauge="normal" to="side4"/> + <Track from="side3" gauge="normal" to="side5"/> + <Track from="side4" gauge="normal" to="side5"/> + </Tile> + <Tile colour="brown" id="40" name="40"> + <Track from="side1" gauge="normal" to="side3" /> + <Track from="side1" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side5" /> + </Tile> + <Tile colour="brown" id="41" name="41"> + <Track from="side4" gauge="normal" to="side0" /> + <Track from="side4" gauge="normal" to="side3" /> + <Track from="side0" gauge="normal" to="side3" /> + </Tile> + <Tile colour="brown" id="42" name="42"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side0" /> + <Track from="side5" gauge="normal" to="side0" /> + </Tile> + <Tile colour="brown" id="43" name="43"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side0" /> + <Track from="side4" gauge="normal" to="side5" /> + <Track from="side4" gauge="normal" to="side0" /> + </Tile> + <Tile colour="brown" id="44" name="44"> + <Track from="side3" gauge="normal" to="side0" /> + <Track from="side1" gauge="normal" to="side0" /> + <Track from="side3" gauge="normal" to="side4" /> + <Track from="side1" gauge="normal" to="side4" /> + </Tile> + <Tile colour="brown" id="45" name="45"> + <Track from="side1" gauge="normal" to="side5" /> + <Track from="side1" gauge="normal" to="side3" /> + <Track from="side5" gauge="normal" to="side0" /> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="brown" id="46" name="46"> + <Track from="side1" gauge="normal" to="side5" /> + <Track from="side1" gauge="normal" to="side0" /> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side0" /> + </Tile> + <Tile colour="brown" id="47" name="47"> + <Track from="side3" gauge="normal" to="side0" /> + <Track from="side3" gauge="normal" to="side1" /> + <Track from="side4" gauge="normal" to="side0" /> + <Track from="side4" gauge="normal" to="side1" /> + </Tile> + <Tile colour="brown" id="63" name="63"> + <Station id="city1" position="0" slots="2" type="City" value="40" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="brown" id="70" name="70"> + <Track from="side3" gauge="normal" to="side5" /> + <Track from="side3" gauge="normal" to="side4" /> + <Track from="side5" gauge="normal" to="side0" /> + <Track from="side4" gauge="normal" to="side0" /> + </Tile> + <Tile colour="brown" id="1444" name="444"> + <Station id="city1" position="0" slots="2" type="City" value="50" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> + <Tile colour="gray" id="446" name="446"> + <Station id="city1" position="0" slots="3" type="City" value="70" /> + <Track from="city1" gauge="normal" to="side0" /> + <Track from="city1" gauge="normal" to="side1" /> + <Track from="city1" gauge="normal" to="side2" /> + <Track from="city1" gauge="normal" to="side3" /> + <Track from="city1" gauge="normal" to="side4" /> + <Track from="city1" gauge="normal" to="side5" /> + </Tile> +</Tiles> Property changes on: trunk/18xx/data/18GA/Tiles.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18JR/CompanyManager.xml =================================================================== --- trunk/18xx/data/18JR/CompanyManager.xml (rev 0) +++ trunk/18xx/data/18JR/CompanyManager.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,101 @@ +<?xml version="1.0"?> +<CompanyManager> + <CompanyType name="Private" class="rails.game.PrivateCompany"> + <ClosingConditions> + <Phase>5</Phase> + </ClosingConditions> + </CompanyType> + <CompanyType name="Public" class="rails.game.PublicCompany"> + <CanBuyPrivates lowerPriceFactor="0.5" upperPriceFactor="2.0"/> + <PoolPaysOut/> + <Float percentage="60"/> + <ShareUnit percentage="10"/> + <BaseTokens> + <!-- HomeBase lay options: "whenStarted", "whenFloated", "firstOR" (default) --> + <HomeBase lay="firstOR"/> + <!-- LayCost methods: only "sequence" (1830 style) implemented so far (default) --> + <LayCost method="sequence" cost="0,40,100"/> + </BaseTokens> + <Certificate type="President" shares="2"/> + <Certificate shares="1" number="8"/> + <Trains number="4,4,3,2"/> + <CanUseSpecialProperties/> + </CompanyType> + <Company name="SVNRR" type="Private" basePrice="20" revenue="5" + longname="Schuylkill Valley Navigation & Railroad Company"> + </Company> + <Company name="C&StL" type="Private" basePrice="40" revenue="10" + longname="Champlain & St.Lawrence"> + </Company> + <Company name="D&H" type="Private" basePrice="70" revenue="15" + longname="Delaware & Hudson"> + </Company> + <Company name="M&H" type="Private" basePrice="110" revenue="20" + longname="Mohawk & Hudson"> + <SpecialProperties> + <SpecialProperty condition="ifOwnedByPlayer" when="anyTurn" class="rails.game.special.ExchangeForShare"> + <ExchangeForShare company="NYC" share="10"/> + </SpecialProperty> + </SpecialProperties> + </Company> + <Company name="C&A" type="Private" basePrice="160" revenue="25" + longname="Camden & Amboy"> + <Info key="ComesWithCertificate" parm="PRR,10"/> + </Company> + <Company name="B&O" type="Private" basePrice="220" revenue="30" + longname="Baltimore & Ohio"> + <Info key="ComesWithPresidency" parm="B&O,20"/> + </Company> + + <!-- Note two supported colour specification formats: + RGB decimal with commas and RGB hexadecimal without commas --> + <Company name="B&O" type="Public" tokens="2" fgColour="FFFFFF" bgColour="0,0,255" + longname="Baltimore and Ohio"> + <Home hex="H6"/> + </Company> + <Company name="C&A" type="Public" tokens="2" fgColour="000000" bgColour="FF8000" + longname="Camden and Amboy"> + <Home hex="E11"/> + </Company> + <Company name="C&O" type="Public" tokens="2" fgColour="000000" bgColour="A0E0FF" + longname="Chesapeake and Ohio Railway"> + <Home hex="M7"/> + </Company> + <Company name="N&W" type="Public" tokens="2" fgColour="FFFFFF" bgColour="B03B00" + longname="Norfolk and Western"> + <Home hex="M3"/> + </Company> + <Company name="PLE" type="Public" tokens="2" fgColour="FFFFFF" bgColour="000000" + longname="Pittsburgh and Lake Erie Railroad"> + <Home hex="C1"/> + </Company> + <Company name="PRR" type="Public" tokens="2" fgColour="FFFFFF" bgColour="008000" + longname="Pennsylvania Railroad"> + <Home hex="D10"/> + </Company> + <Company name="SQ" type="Public" tokens="2" fgColour="000000" bgColour="FFFF00" + longname="New York, Susquehanna and Western Railway"> + <Home hex="B6"/> + </Company> <Company name="SRC" type="Public" tokens="2" fgColour="FFFF00" bgColour="FF0000" + longname="Strasburg Rail Road"> + <FirstTrainCloses type="Private" name="B&O"/> + <Home hex="D8"/> + </Company> + <IfOption name="Variant" value="Pere Marquette"> + <Company name="PM" type="Public" tokens="2" fgColour="FFFF00" bgColour="000080" + longname="Pere Marquette"> + <Home hex="C7"/> + </Company> + </IfOption> + <StartPacket roundClass="rails.game.StartRound_1830"> + <Bidding initial="5" minimum="5" increment="1"/> + <Item name="SVNRR" type="Private" basePrice="20"/> + <Item name="C&StL" type="Private" basePrice="40"/> + <Item name="D&H" type="Private" basePrice="70"/> + <Item name="M&H" type="Private" basePrice="110"/> + <Item name="C&A" type="Private" basePrice="160"/> + <Item name="B&O" type="Private" basePrice="220"> + <SubItem name="B&O" type="Public" president="yes"/> + </Item> + </StartPacket> +</CompanyManager> Property changes on: trunk/18xx/data/18JR/CompanyManager.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18JR/Game.xml =================================================================== --- trunk/18xx/data/18JR/Game.xml (rev 0) +++ trunk/18xx/data/18JR/Game.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,155 @@ +<?xml version="1.0"?> +<ComponentManager> + <Component name="GameManager" class="rails.game.GameManager"> + <Game name="18JR"/> + <!-- GAME OPTIONS must have: + - a name, which must also exist as an entry in LocalText.properties, + - optionally 'type="toggle"', which has the effect that the + selection uses a checkbox instead of a dropdown list. + In this case, 'values' must be absent + (the allowed values are fixed to "yes,no"). + - optionally, 'values="a,b,c"' i,e, a list of allowed values. + - optionally, a default value (only affects a toggle; + in a dropdown the first item is always the default). + --> + <!-- The options in Game.xml are not currently used. + See GamesList.xml for the real ones. + --> + <GameOption name="Variant" values="Basegame,Cotton Port" default="Basegame" /> + <GameOption name="NoMapMode" type="toggle" default="no" /> + <GameOption name="RouteAwareness" values="Highlight,Deactivate" default="Deactivate" /> + <GameOption name="RevenueCalculation" values="Suggest,Deactivate" default="Deactivate" /> + <GameOption name="BeginnerGame" type="toggle" default="no" /> + <GameOption name="WithOptional6Train" type="toggle" default="no"/> + <GameOption name="UnlimitedTopTrains" parm="D" type="toggle" default="no"/> + <GameOption name="UnlimitedTiles" type="toggle" default="no"/> + <GameOption name="LeaveAuctionOnPass" type="toggle" default="no"/> + <GameOption name="TwoPlayersCertLimit70Percent" type="toggle" default="yes"/> + <GameOption name="SeparateSalesAtSamePrice" type="toggle" default="yes"/> + <GameParameters> + <PlayerShareLimit percentage="60"> + <!-- Option "NumberOfPlayers" is automatically set + by the game engine --> + <IfOption name="NumberOfPlayers" value="2"> + <IfOption name="TwoPlayersCertLimit70Percent" value="yes"> + <Attributes percentage="70"/> + </IfOption> + </IfOption> + </PlayerShareLimit> + <BankPoolLimit percentage="50"/> + <StockRound> + <NoSaleInFirstSR/> + </StockRound> + </GameParameters> + <EndOfGame> + <Bankruptcy/> + <BankBreaks limit="0" finish="setOfORs"/> + <!-- "Runs out"; when "broken", -1 is the limit --> + </EndOfGame> + </Component> + <Component name="PlayerManager" class="rails.game.PlayerManager"> + <IfOption name="Variant" value="Basegame"> + <Players number="2" cash="1200" certLimit="28"/> + <Players number="3" cash="800" certLimit="20"/> + <Players number="4" cash="600" certLimit="16"/> + <Players number="5" cash="480" certLimit="13"/> + <Players number="6" cash="400" certLimit="11"/> + </IfOption> + <IfOption name="Variant" value="Pere Marquette"> + <Players number="2" cash="1200" certLimit="32"/> + <Players number="3" cash="800" certLimit="22"/> + <Players number="4" cash="600" certLimit="17"/> + <Players number="5" cash="480" certLimit="14"/> + <Players number="6" cash="400" certLimit="12"/> + <Players number="7" cash="360" certLimit="11"/> + </IfOption> + </Component> + <Component name="Bank" class="rails.game.Bank"> + <Bank amount="12000"/> + <Money format="$@"/> + </Component> + <Component name="TileManager" class="rails.game.TileManager" + file="TileSet.xml"/> + <Component name="Map" class="rails.game.MapManager" file="Map.xml"/> + <Component name="CompanyManager" class="rails.game.CompanyManager" + file="CompanyManager.xml"/> + <Component name="StockMarket" class="rails.game.StockMarket" + file="StockMarket.xml"/> + <Component name="TrainManager" class="rails.game.TrainManager"> + <Defaults> + <Reach base="stops" countTowns="yes"/> + <!-- Alternative values: + base="hexes" for H-trains as in 1826, 1849 etc. + countTowns="no" for all trains in 1841, 18EU, etc., + where towns score but do not count against the train length. + Otherwise, towns are counted as minor or major stops, + depending on the presence or absence of a "minorStops" value. + --> + <Score towns="yes"/> + <!-- Alternative values: + towns="no" for trains that ignore towns (e.g. 1826 TGV). + cities="double" if city-revenue is doubled (e.g. 1826 TGV). + --> + </Defaults> + <Train name="2" majorStops="2" cost="80" amount="6"/> + <Train name="3" majorStops="3" cost="180" amount="5" startPhase="3"/> + <Train name="4" majorStops="4" cost="300" amount="4" startPhase="4" + rustedTrain="2"/> + <Train name="5" majorStops="5" cost="450" amount="3" startPhase="5"/> + <!--Train name="6" majorStops="6" cost="630" amount="2" startPhase="6" + rustedTrain="3" releasedTrain="D"/--> + <Train name="6" majorStops="6" cost="630" startPhase="6" + rustedTrain="3" releasedTrain="D"> + <IfOption name="WithOptional6Train" value="yes"> + <Attributes amount="3"/> + </IfOption> + <IfOption name="WithOptional6Train" value="no"> + <Attributes amount="2"/> + </IfOption> + <IfOption name="Variant" value="Pere Marquette"> + <Attributes amount="3"/> + </IfOption> + </Train> + <Train name="D" majorStops="99" cost="1100" startPhase="D" + rustedTrain="4"> + <IfOption name="UnlimitedTopTrains" value="yes"> + <Attributes amount="-1"/> + </IfOption> + <IfOption name="UnlimitedTopTrains" value="no"> + <Attributes amount="6"/> + </IfOption> + <Exchange cost="800"/> + </Train> + </Component> + <Component name="PhaseManager" class="rails.game.PhaseManager"> + <!-- Note: released and rusted trains are now specified per Train + but could as well be moved here. To be sorted out when we do 18US. --> + <!-- Each Phase's defaults are the previous one's values --> + <Phase name="2" > + <Tiles colour="yellow"/> + <Privates sellingAllowed="no"/> + <OperatingRounds number="1"/> + <Trains tradingAllowed="yes"/> + </Phase> + <Phase name="3"> + <Tiles colour="yellow,green"/> + <Privates sellingAllowed="yes"/> + <OperatingRounds number="2"/> + </Phase> + <Phase name="4"> + <Tiles colour="yellow,green"/> + </Phase> + <Phase name="5"> + <Tiles colour="yellow,green,brown"/> + <!--Privates close="yes"/--> + <OperatingRounds number="3"/> + <OffBoardRevenue step="2"/> + </Phase> + <Phase name="6"> + <Tiles colour="yellow,green,brown"/> + </Phase> + <Phase name="D"> + <Tiles colour="yellow,green,brown"/> + </Phase> + </Component> +</ComponentManager> \ No newline at end of file Property changes on: trunk/18xx/data/18JR/Game.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18JR/Map.xml =================================================================== --- trunk/18xx/data/18JR/Map.xml (rev 0) +++ trunk/18xx/data/18JR/Map.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,65 @@ +<Map mapClass="rails.ui.swing.hexmap.NSHexMap" tileOrientation="NS" letterOrientation="vertical" even="B"> + + <Hex name="A5" tile="-7" orientation="1"/> + <Hex name="A7" tile="-7" orientation="2"/> + <Hex name="B2" tile="-902" orientation="1" value="40,50"/> + <Hex name="B4" tile="0" cost="120"/> + <Hex name="B6" tile="-10"/> + <Hex name="B8" tile="0"/> + <Hex name="B10" tile="0"/> + <Hex name="B12" tile="-902" orientation="2" value="40,50"/> + <Hex name="C1" tile="-104"/> + <Hex name="C3" tile="-10"/> + <Hex name="C5" tile="-10" cost="120"/> + <Hex name="C7" tile="-1" cost="40"/> + <Hex name="C9" tile="-1"/> + <Hex name="C11" tile="-2"/> + <Hex name="D2" tile="-2"/> + <Hex name="D4" tile="0" cost="120"/> + <Hex name="D6" tile="0"/> + <Hex name="D8" tile="-10" cost="40"/> + <Hex name="D10" tile="-10" cost="40"/> + <Hex name="D12" tile="0"/> + <Hex name="E3" tile="0"/> + <Hex name="E5" tile="0" cost="120"/> + <Hex name="E7" tile="0"/> + <Hex name="E9" tile="0" cost="40"/> + <Hex name="E11" tile="-10"/> + <Hex name="F2" tile="0"/> + <Hex name="F4" tile="0" cost="120"/> + <Hex name="F6" tile="0"/> + <Hex name="F8" tile="-10" cost="40"/> + <Hex name="F10" tile="0" cost="40"/> + <Hex name="G1" tile="-902" value="40,50"/> + <Hex name="G3" tile="-10"/> + <Hex name="G5" tile="0" cost="120"/> + <Hex name="G7" tile="0"/> + <Hex name="G9" tile="-10"/> + <Hex name="H2" tile="0"/> + <Hex name="H4" tile="0" cost="120"/> + <Hex name="H6" tile="-10"/> + <Hex name="H10" tile="0"/> + <Hex name="I3" tile="0"/> + <Hex name="I5" tile="-1"/> + <Hex name="I7" tile="0" cost="40"/> + <Hex name="I9" tile="0"/> + <Hex name="I11" tile="-901" orientation="3" value="40,50"/> + <Hex name="J2" tile="0"/> + <Hex name="J4" tile="0" cost="120"/> + <Hex name="J6" tile="0" cost="40"/> + <Hex name="J10" tile="0"/> + <Hex name="K3" tile="0"/> + <Hex name="K5" tile="-1"/> + <Hex name="K7" tile="0" cost="40"/> + <Hex name="K11" tile="-901" orientation="3" value="40,50"/> + <Hex name="L2" tile="0"/> + <Hex name="L4" tile="-10"/> + <Hex name="L6" tile="0"/> + <Hex name="L8" tile="0" cost="40"/> + <Hex name="M1" tile="-901" orientation="5" value="40,50"/> + <Hex name="M3" tile="-10" cost="120"/> + <Hex name="M5" tile="0"/> + <Hex name="M7" tile="-10"/> + <Hex name="N2" tile="-902" orientation="5" value="40,50"/> + <Hex name="N8" tile="-901" orientation="3" value="40,50"/> +</Map> Property changes on: trunk/18xx/data/18JR/Map.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18JR/StockMarket.xml =================================================================== --- trunk/18xx/data/18JR/StockMarket.xml (rev 0) +++ trunk/18xx/data/18JR/StockMarket.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,111 @@ +<StockMarket type="rectangular"> + <!-- Note two supported colour specification formats: + RGB decimal with commas and RGB hexadecimal without commas --> + <StockSpaceType name="yellow" colour="255,255,0"> + <NoCertLimit/> + </StockSpaceType> + + <StockSpace name="A1" price="70" /> + <StockSpace name="A2" price="65" type="yellow"/> + <StockSpace name="A3" price="55" type="yellow"/> + <StockSpace name="A4" price="50" type="yellow"/> + <StockSpace name="A5" price="45" type="yellow"/> + <StockSpace name="A6" price="40" type="yellow"/> + <StockSpace name="A7" price="30" type="yellow"/> + <StockSpace name="A8" price="20" type="yellow"/> + <StockSpace name="B1" price="75" /> + <StockSpace name="B2" price="70" /> + <StockSpace name="B3" price="65" type="yellow"/> + <StockSpace name="B4" price="60" type="yellow"/> + <StockSpace name="B5" price="55" type="yellow"/> + <StockSpace name="B6" price="50" type="yellow"/> + <StockSpace name="B7" price="40" type="yellow"/> + <StockSpace name="B8" price="30" type="yellow"/> + <StockSpace name="C1" price="80" /> + <StockSpace name="C2" price="75" /> + <StockSpace name="C3" price="70" /> + <StockSpace name="C4" price="65" type="yellow"/> + <StockSpace name="C5" price="60" type="yellow"/> + <StockSpace name="C6" price="55" type="yellow"/> + <StockSpace name="C7" price="50" type="yellow"/> + <StockSpace name="C8" price="40" type="yellow"/> + <StockSpace name="D1" price="85" /> + <StockSpace name="D2" price="80" /> + <StockSpace name="D3" price="75" /> + <StockSpace name="D4" price="70" /> + <StockSpace name="D5" price="65" /> + <StockSpace name="D6" price="60" type="yellow"/> + <StockSpace name="D7" price="55" type="yellow"/> + <StockSpace name="D8" price="45" type="yellow"/> + <StockSpace name="E1" price="90" /> + <StockSpace name="E2" price="85" /> + <StockSpace name="E3" price="80" /> + <StockSpace name="E4" price="75" /> + <StockSpace name="E5" price="70" /> + <StockSpace name="E6" price="65" /> + <StockSpace name="E7" price="60" /> + <StockSpace name="E8" price="50" type="yellow"/> + <StockSpace name="F1" price="100" > + <StartSpace/> + </StockSpace> + <StockSpace name="F2" price="90" > + <StartSpace/> + </StockSpace> + <StockSpace name="F3" price="85" > + <StartSpace/> + </StockSpace> + <StockSpace name="F4" price="80" > + <StartSpace/> + </StockSpace> + <StockSpace name="F5" price="75" > + <StartSpace/> + </StockSpace> + <StockSpace name="F6" price="70" > + <StartSpace/> + </StockSpace> + <StockSpace name="F7" price="65" /> + <StockSpace name="F8" price="60" /> + <StockSpace name="G1" price="110" /> + <StockSpace name="G2" price="100" /> + <StockSpace name="G3" price="95" /> + <StockSpace name="G4" price="85" /> + <StockSpace name="G5" price="80" /> + <StockSpace name="G6" price="75" /> + <StockSpace name="G7" price="70" /> + <StockSpace name="G8" price="65" /> + <StockSpace name="H1" price="125" /> + <StockSpace name="H2" price="110" /> + <StockSpace name="H3" price="105" /> + <StockSpace name="H4" price="95" /> + <StockSpace name="H5" price="85" /> + <StockSpace name="H6" price="80" /> + <StockSpace name="H7" price="75" /> + <StockSpace name="I1" price="140" /> + <StockSpace name="I2" price="125" /> + <StockSpace name="I3" price="115" /> + <StockSpace name="I4" price="105" /> + <StockSpace name="I5" price="95" /> + <StockSpace name="I6" price="85" /> + <StockSpace name="J1" price="160" /> + <StockSpace name="J2" price="140" /> + <StockSpace name="J3" price="130" /> + <StockSpace name="J4" price="115" /> + <StockSpace name="J5" price="105" /> + <StockSpace name="K1" price="180" /> + <StockSpace name="K2" price="160" /> + <StockSpace name="K3" price="145" /> + <StockSpace name="K4" price="130" /> + <StockSpace name="L1" price="205" /> + <StockSpace name="L2" price="180" /> + <StockSpace name="L3" price="160" /> + <StockSpace name="L4" price="145" /> + <StockSpace name="M1" price="235" /> + <StockSpace name="M2" price="205" /> + <StockSpace name="M3" price="180" /> + <StockSpace name="N1" price="265" /> + <StockSpace name="N2" price="235" /> + <StockSpace name="N3" price="205" /> + <StockSpace name="O1" price="300" /> + <StockSpace name="O2" price="265" /> + <StockSpace name="O3" price="235" /> +</StockMarket> Property changes on: trunk/18xx/data/18JR/StockMarket.xml ___________________________________________________________________ Added: svn:mime-type + text/plain Added: trunk/18xx/data/18JR/TileSet.xml =================================================================== --- trunk/18xx/data/18JR/TileSet.xml (rev 0) +++ trunk/18xx/data/18JR/TileSet.xml 2011-03-29 13:13:57 UTC (rev 1503) @@ -0,0 +1,128 @@ +<TileManager tiles="Tiles.xml"> + <!-- Preprinted tiles --> + <Tile id="0"><!-- Empty space --> + <Upgrade id="7,8,9"/> + </Tile> + <Tile id="-1"><!-- 1 town --> + <Upgrade id="3,4,58"/> + </Tile> + <Tile id="-2"><!-- 2 towns --> + <Upgrade id="1,2,55,56,69"/> + </Tile> + <Tile id="-3"/> + <Tile id="-5"/> + <Tile id="-7"/> + <Tile id="-10"><!-- 1 city --> + <Upgrade id="57,1441"/> + </Tile> + <Tile id="-11"><!-- B yellow --> + <Upgrade id="53"/> + </Tile> + <Tile id="-20"><!-- 2 OO cities --> + <Upgrade id="59" relayBaseTokens="yes"/> + </Tile> + <Tile id="-21"><!-- New York --> + <Upgrade id="54"/> + </Tile> + <Tile id="-58"/> + <Tile id="-101"/><!-- Altoona --> + <Tile id="-102"/><!-- Rochester --> + <Tile id="-103"/><!-- Montreal --> + <Tile id="-104"/><!-- Norwich --> + <Tile id="-105"/><!-- Cleveland --> + <Tile id="-901"/> + <Tile id="-902"/> + <Tile id="-903"/> + + <!-- Yellow tiles --> + <Tile id="1" quantity="1" /> + <Tile id="2" quantity="1" /> + <Tile id="3" quantity="2" /> + <Tile id="4" quantity="2" /> + <Tile id="7" quantity="4"> + <Upgrade id="18,26,27,28,29" /> + </Tile> + <Tile id="8" quantity="8"> + <Upgrade id="16,19,23,24,25,28,29" /> + </Tile> + <Tile id="9" quantity="7"> + <Upgrade id="18,19,20,23,24,26,27" /> + </Tile> + <Tile id="55" quantity="1" /> + <Tile id="56" quantity="1" /> + <Tile id="57" quantity="4"> + <Upgrade id="14,15" /> + </Tile> + <Tile id="58" quantity="2" /> + <Tile id="69" quantity="1" /> + + <!-- Green tiles --> + <Tile id="14" quantity="3"> + <Upgrade id="63" /> + </Tile> + <Tile id="15" quantity="2"> + <Upgrade id="63" /> + </Tile> + <Tile id="16" quantity="1"> + <Upgrade id="43,70" /> + </Tile> + <Tile id="18" quantity="1"> + <Upgrade id="43" /> + </Tile> + <Tile id="19" quantity="1"> + <Upgrade id="45,46" /> + </Tile> + <Tile id="20" quantity="1"> + <Upgrade id="44,47" /> + </Tile> + <Tile id="23" quantity="3"> + <Upgrade id="41,43,45,47" /> + </Tile> + <Tile id="24" quantity="3"> + <Upgrade id="42,43,46,47" /> + </Tile> + <Tile id="25" quantity="1"> + <Upgrade id="40,45,46" /> + </Tile> + <Tile id="26" quantity="1"> + <Upgrade id="42,44,45" /> + </Tile> + <Tile id="27" quantity="1"> + <Upgrade id="41,44,46" /> + </Tile> + <Tile id="28" quantity="1"> + <Upgrade id="39,43,46,70" /> + </Tile> + <Tile id="29" quantity="1"> + <Upgrade id="39,43,45,70" /> + </Tile> + <Tile id="53" quantity="2"> + <Upgrade id="61" /> + </Tile> + <Tile id="54" quantity="1"> + <Upgrade id="62" /> + </Tile> + <Tile id="59" quantity="2"> + <Upgrade id="64,65,66,67,68" /> + </Tile> + <!-- Brown tiles --> + <Tile id="39" quantity="1" /> + <Tile id="40" quantity="1" /> + <Tile id="41" quantity="2" /> + <Tile id="42" quantity="2" /> + <Tile id="43" quantity="2" /> + <Tile id="44" quantity="1" /> + <Tile id="45" quantity="2" /> + <Tile id="46" quantity="2" /> + <Tile id="47" quantity="1" /> + <Tile id="61" quantity="2" /> + <Tile id="62" quantity="1" /> + <Tile id="63" quantity="3" /> + <Tile id="64" quantity="1" /> + <Tile id="65" quantity="1" /> + <Tile id="66" quantity="1" /> + <Tile id="67" quantity="1" /> + <Tile id="68" quantit... [truncated message content] |