From: Erik V. <eri...@hc...> - 2005-03-09 20:04:05
|
> > Fractional numbers: > > I vaguely remember having seen games in which 5% certicates=20 > > count for 0.5 against the limit.=20 > > Not sure if it is really needed to allow commas here. > > If so it can be a UI customisation item. Or use =BD. >=20 > I would embed this logic in functions that convert numbers to and from > strings, and pass all I/O (other than XML) through those functions. > (Of course, this creates a naming conflict since you've=20 > already decided > that toString() will be used to convert objects to XML. I would have > called that toXML() instead.) Me too. =20 > > Thousand separators: to be avoided (confusing). >=20 > Inserting a space might be worth doing. Certainly ignore spaces on > input. Yes, a space would be OK. =20 > > Currency symbols: not needed, I think, in most places. > > If used, follow the placement as in the games rules, > > i.e. $100 (1856), 100G (1854). >=20 > I disagree, this should be localized and is trivial to do. >=20 > As others have said, locale support can be added after a=20 > first release. But in this case the currency symbol is not a per-user but a per-game variable. And many games feature no-longer-existing countries with = no-longer-existing currencies.=20 So we might end up defining custom Locales with fictituous = country/language codes. Perhaps easier is to use replaceFirst() to format money amounts, whereby the replacement pattern can be included (or described) in the = game XML file. Erik. |