[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] can there be partners on this server?
On Wed, Jul 23, 2003 at 06:07:29PM -0500, Douglas Zander wrote:
> Sharkey, would it be possible to go in and manipulate the ratings
> file for a game directly? I understand that this would be a lot of
> programming, but could it be done? We could maybe over-ride the
> ratings.cpp file or the game.cpp file or what-ever file is neccessary?
> I guess those files aren't labeled as "virtual"? Is that what would
> be required? Is this how Richard protects certain parts of the program
> by making them non-virtual???
The problem (as I see it right now) is...
Ratings are their own class. Not a part of the base Game class.
I suspect that is the answer. Move the rating logic to within the
Game class itself. Then if a game wants to implement it's own style
of rating... override the rating functions of the game class.
as it is, it's a mess (and I still have the FIBS stuff that I
want to implement for backgammon et al...)
I think the above might do it, but finding the week of coding time
needed to beat it into submission is the problem.
. o O ( something about having a wife... a teenage son... a pre-teen
daughter... and twin "tweenies"... huh... )
--
/ \__ | Richard Rognlie / Oracle Prophet / Gamerz.NET Lackey
\__/ \ | http://www.gamerz.net/rrognlie/ <rrognlie@gamerz.net>
/ \__/ | The past is the future
\__/ | Nobody expects the spammish inquisition