From: Leif W <war...@us...> - 2002-12-22 14:15:51
|
Hello, I'm working with some JavaScript to create a card game, and have come across the secondary inheritance bug (using IE 6.0.2800.1106 (SP1)), and was wondering if someone could explain the fix for the similar problem that was found in the dynapi. Ideally an explanation or example of a generalized solution or workaround for this problem would be most helpful (as opposed to a DynAPI-centric solution). The scenario in my code, I have a Pile object, and a Deck object, and two instances of the Deck object. I have a Deck.Populate method which fills the deck with cards. This method is called once from one instance, but both decks become populated. The Decks have a Name property which seems to be ok, but the methods apparently aren't inherited properly. My card game is in prototyping now, so that I can get the core game working and modularized (for different card games), but I plan to make a DynAPI version, along with Java Applet, Flash, and PHP versions (from text-only standalone up to full GUI and client/server multiplayer). This isn't part of any corporate venture, it's solely for the purpose of self-education and exercise. Any help would be appreciated. Sincerly, Leif W warp-9.9 |