medley icon indicating copy to clipboard operation
medley copied to clipboard

Player doesn't have a truck -- class hierarchy wrong

Open masinter opened this issue 8 months ago • 0 comments

player class hierarchy for Truckin

from @skaisler1 via email 10/7/24 to @masinter (lost)

OK. Here is the class hierarchy.

Image

And, here is PP Player

Image

where you will note there is no mention of 'truck' as an IV!

Here is the PP of InteractivePLayer

Image

And here is the definition for Traveler:

Image

where 'truck' is not mentioned.

The conclusion is that the source code we have circa 1991 could not have worked because TRAVELER never inherits 'truck"

PEDDLER inherits from TRAVELER HOUSEPLAYER inherits from PEDDLER.

So, later in the code I showed you we see where (SETQ player (_ (GetObjectRec obj) New)

means with obj=TRAVELER that it is not inheriting 'truck' either.

The solution is that TRAVELER should have INTERACTIVEPLAYER as its Super, not PLAYER.

masinter avatar Apr 23 '25 15:04 masinter