ID:976782
 
Keywords: child, parent_type
Problem description:
http://i.imgur.com/mxrwK.png
Picture is for somekind of visual reference to better understand what i am trying to explain.

Ok, I have a several classes then are all children of a parent class. Now I need 2 of the children classes to be able to communicate with a third child class.

-First can each of the children communicate with each other? So could one child modify the variables of a separate child?

-Second, if not, could I add a variable to the parent class that they all inherit and then would the child classes be able to access/modify the each other through the parent class?

-Third, if not, would it be possible to have the middle child be set to a child of both the left and right child like this : http://i.imgur.com/ExG5c.png

==============================================
What i am trying to do is setup up a HUD the side boxes are inventory and skills; while the center box is skillcards. I want to make it so that you can drag and drop box items and skills into the skillcards. But i think with the way i have it set up now its impossible and I need some feedback on the proper way to set it up.

Thank you for help in advance.
It might be better to demonstrate this with real-world code from your project actually, as a lot of the answer I currently want to give is "Maybe, depends on your scenario".

The third point however, I can categorically say is not achievable through sub-classing in DM, DM only really supports a single inheritance model. There's quite possibly another way of designing this though, depending on what your code looks like.
It's actually pretty awkward that it's called a "parent_type". I don't know anyone who was born with one parent!
All objects in DM. Or Java.

Bless them, and their single parent upbringing.
All variables and procedures in DM are public--there are no access modifiers. So if one of these children gets a reference to one of the other child types, they can call whatever they want on it. All procedures are also virtual, so if they inherit from the same parent type with a procedure, they can each override that procedure with their own logic, and call it on one another and have the correct code run.

Or am I misunderstanding your question?
I have a feeling it's a parent type issue, so he'd like to type a variable in his HUD slot, to limit it to accepting only items and skills.
In response to Stephen001
Oh, haha, somehow I completely missed the second part of his post. Wouldn't putting the items and skills under the same parent solve this problem?

/Hud/Draggable/Item
/Hud/Draggable/Skill
/Hud/SkillCard
Yep. But I haven't a clue what his code's like, and whether that magically wrecks stuff for him.
Thanks for all the responses. I would show you code but i dont really have it. I am just trying to figure out how to set it up. I am using forum_accounts hud group library if that is helpful. Basically i am wondering if i can drag and drop items from one class to another. Basically from inventory to skillcards.

The reason i dont put them all in the same class is because i want to toggle parts of it but i want skillcards to remain on screen at all times. While the inventory and skillist i want to be able set invisible. If they are all in the same classes, its sets the entire class invisible/visible. Unless does anyone know of a way to hide()/show() parts of class?