Dear Daniwebbers,
I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class.
I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea.
From within one such DungeonRoom object in the dungeon variable, I want to get a function foo on another DungeonRoom in the dungeon variable. Only problem being, it won't let me.
The IDE signals no problems, it's only with trying to access a parent object from within a same object that gives problems. It doesn't even matter if dungeon is an array, or just a single object.
During debugging the program runs without doing anything when trying to access, at least so far I can see.
I honestly have no idea why this is happening, perhaps one of you friendly folk can help me out. :)
Regards,
Aviras