From: alexti <al...@sh...> - 2010-05-15 16:59:32
|
Stefan, I was just throwing ideas around. My solutions are often influenced by a need to run a lot of "what-if" scenarios. So, for example, when I'm determining where a company should place a port token, I would run the optimal route search using a vector of different bonus definitions (corresponding to the placement of port token on different tiles). That makes it much more efficient that run separate searches. Those considerations wouldn't be applicable to Rails. Alex. On Fri, 14 May 2010 10:03:43 -0600, Stefan Frey (web.de) <ste...@we...> wrote: > Alex: > that is one idea, which I use for the simple RevenueBonuses, which lay > on a > Hex or Tile. > > For the more complex cases I prefer a "push" approach to a "pull" > approach: > The objects that change reveneues have to register themselves as > RevenueModifiers. Those are two Interfaces (static and a dynamic version) > which have to be implemented by the objects that want to modify the > revenue > results. > > The major obstacle is my neglectable knowledge about Tokens and > BonusTokens in > Rails. Thus I do not want to change anything there close to the next > release. > > Stefan > > >> >> My approach is to include "token" requirements to the bonus definition. >> For example, for port token in 1856 I have an entry in bonus table (that >> gives +20 to the city) with 2 requirements: (1) hex must contain port >> token; (2) company must have port token. Tokens are transferred during >> the >> private company sales and (when applicable) due to direct token sales. >> >> Alex. >> >> --------------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |