From: Stefan F. (web.de) <ste...@we...> - 2010-05-11 22:03:14
|
Freek, thanks for the compliments and the fix to the built script. Stefan Some more updates to changes to the revenue calculator: The result is that 1830 and 1889 are now the first games, which are fully supported. The changes are: -> Stations with identical city attributes are automatically defined as "vertexVisitSets" for the revenue calculator. Thus each station sets all other stations to be already visited. For offboard stations the attribute defined for the hex is used, for all other stations the tile definition is the relevant one. This prevents a train to run twice into multiple-hex off-board locations. For tiles with multiple stations (e.g. Berlin in 1835), where only one can visited per run, the city tag has to be defined accordingly. -> For hexes and tiles RevenueBonuses can be defined. An example for the syntax is: <RevenueBonus value="40"> <Vertex id="-1"/> <Train type="D"/> </RevenueBonus> (That is the one used for 1889 off-board locations). An additional tag <Phase name=""/> is available. All tags can be used more than once per each RevenueBonus, trains and phases are "OR" connected, vertices "AND". This allows the already mentioned 1889 diesel bonuses and the HH Elbe crossing malus in 1835. In addition those are basic elements for RevenueModifiers, which will allow to implement more complicated bonuses. On Sunday 09 May 2010 00:10:07 Freek Dijkstra wrote: > Stefan, and all others who helped, > > My compliments for the revenue calculator. It looks awesome already! > > I just did a minor commit adding the graph libraries to the classpath in > build.xml; without it, it did not run. (This is only relevant for those > who use ant to build the app). > > Regards, > Freek > > --------------------------------------------------------------------------- >--- > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |