From: Stefan F. <ste...@we...> - 2014-08-18 11:18:31
|
Martin: take a look at BirminghamTileModifier in package net.sf.rails.game.specific._1851 : You need to implement the NetworkGraphModifier interface to exclude/include hexes from being available. However this will not reflected visually on the map, "only" for the calculation of routes and hexes that are allowed to lay tiles and tokens on. Upgrading a tile should be possible at the time of the phase change from inside the game engine. However this still requires some UI code. As I am currently working on the UI, you could wait a little bit with that, if you prefer. Otherwise have a look at the ORUIManager for the current implementation. Stefan On 08/18/2014 12:16 PM, Dr. Martin Brumm wrote: > Hi, > > do we have sofar any mechanismn in place to recreate the map based on > different Phases ? > > In particular 1837 has two map changing phases (where as after the first > purchased 3 train Bosnia-Herzogovina becomes eglible for tile lays and > after the first 4 train italy isnt available anymore besides Bozen that > gets an automatic upgrade/replacement). > > Most if not all tile handling mechanics are coming out of the OR UI > right now, but this i think should be handled by the game engine ? > > Whats your opinion and howto proceed ? Is there a provision to have the > engine//or any non player entity manipulate the map ? > > Regards, > Martin > > ------------------------------------------------------------------------------ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |