From: Dr. M. B. <dr....@t-...> - 2014-08-18 10:17:09
|
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 |
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 > |
From: John D. G. <jd...@di...> - 2014-08-18 19:04:12
|
On 2014-08-18 03:16, 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). Here is how I had in mind to implement that: * Add to the XML "Hex" object, an option specifying that a particular tile (by number and direction) be laid there when a specified phase change occurs. A positive tile number means it is taken from the unused tile supply; if negative we don't bother, but just treat it as if preprinted. In either case any existing tile in the hex (and any tokens if not accommodated on the new tile) go back to the supply (again, unless the tile number is negative). * Bosnia - all hexes begin with a "preprinted blank gray tile with a negative number" (use a version with a city for the BH home, so it will show). At phase 3 we use the new feature to auto-lay a pale green "tile" with a negative number on each hex. It can then be upgraded. * Italy - all hexes begin normally, but at phase 4 they all get a blank gray tile auto-laid on them, wiping everything out. Even cities are not preserved. The green tile for Bozen also gets auto-laid. |
From: Chris S. <chr...@gm...> - 2014-08-18 19:58:27
|
I think you'll want to account for hexes being removed too, as in the Florida Keys in 18FL or that one area in the southwest of the 1841 map. -- Chris Warning! NSA analysts could be reading this email. And because there's hardly any accountability, we have no idea how they may use it. If that bothers you, click here to do something about it. On Mon, Aug 18, 2014 at 12:03 PM, John David Galt <jd...@di...> wrote: > On 2014-08-18 03:16, 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). > > Here is how I had in mind to implement that: > > * Add to the XML "Hex" object, an option specifying that a particular > tile (by number and direction) be laid there when a specified phase change > occurs. A positive tile number means it is taken from the unused tile > supply; if negative we don't bother, but just treat it as if preprinted. > In either case any existing tile in the hex (and any tokens if not > accommodated on the new tile) go back to the supply (again, unless the > tile number is negative). > > * Bosnia - all hexes begin with a "preprinted blank gray tile with a > negative number" (use a version with a city for the BH home, so it will > show). At phase 3 we use the new feature to auto-lay a pale green "tile" > with a negative number on each hex. It can then be upgraded. > > * Italy - all hexes begin normally, but at phase 4 they all get a blank > gray tile auto-laid on them, wiping everything out. Even cities are not > preserved. The green tile for Bozen also gets auto-laid. > > ------------------------------------------------------------------------------ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Chris S. <chr...@gm...> - 2014-08-18 20:07:23
|
Ah, and reading John's message, I see that you've already done that, by laying grey blank hexes. Ignore my peanut gallery. -- Chris Warning! NSA analysts could be reading this email. And because there's hardly any accountability, we have no idea how they may use it. If that bothers you, click here to do something about it. On Mon, Aug 18, 2014 at 12:58 PM, Chris Shaffer <chr...@gm...> wrote: > I think you'll want to account for hexes being removed too, as in the > Florida Keys in 18FL or that one area in the southwest of the 1841 > map. > > -- > Chris > > Warning! NSA analysts could be reading this email. And because there's > hardly any accountability, we have no idea how they may use it. If > that bothers you, click here to do something about it. > > > On Mon, Aug 18, 2014 at 12:03 PM, John David Galt > <jd...@di...> wrote: >> On 2014-08-18 03:16, 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). >> >> Here is how I had in mind to implement that: >> >> * Add to the XML "Hex" object, an option specifying that a particular >> tile (by number and direction) be laid there when a specified phase change >> occurs. A positive tile number means it is taken from the unused tile >> supply; if negative we don't bother, but just treat it as if preprinted. >> In either case any existing tile in the hex (and any tokens if not >> accommodated on the new tile) go back to the supply (again, unless the >> tile number is negative). >> >> * Bosnia - all hexes begin with a "preprinted blank gray tile with a >> negative number" (use a version with a city for the BH home, so it will >> show). At phase 3 we use the new feature to auto-lay a pale green "tile" >> with a negative number on each hex. It can then be upgraded. >> >> * Italy - all hexes begin normally, but at phase 4 they all get a blank >> gray tile auto-laid on them, wiping everything out. Even cities are not >> preserved. The green tile for Bozen also gets auto-laid. >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: John D. G. <jd...@di...> - 2014-08-18 20:11:20
|
On 2014-08-18 12:58, Chris Shaffer wrote: > I think you'll want to account for hexes being removed too, as in the > Florida Keys in 18FL or that one area in the southwest of the 1841 > map. Why wouldn't auto-laying a blank gray tile accomplish that? |