Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Use of objects and associated performance hit?

Author: Alexander Kure

Date: 20:07:26 12/31/99

Go up one level in this thread


On December 31, 1999 at 19:56:28, Tom Kerrigan wrote:

>On December 31, 1999 at 08:52:00, Daniel Clausen wrote:
>
>>A lot of people tend to 'solve' a lot of problems by sub-classing - and in the
>>end they end up with a rather silly/strange design. If I understood you
>>correctly, you want to accomplish that your engine has a board, which sounds
>
>Exactly. But I also want to access the member variables and functions of the
>board as if they were part of the engine. (Otherwise everything looks like a big
>mess.) The only way I can think of to accomplish this is to make the engine
>class a derivative of the board class.

Using Friendship would be more to the point.

Greetings
Alex



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.