This is more like C++ question than DarkGDK but I guess it fits here anyway.
So how do I call a function of a parent class from one of its childrens classes?
Example:
The child class:
class cChild
{
public:
void ChildFunction();
};
Now the parent class:
class cParent
{
public:
void FunctionA();
cChild ChildA,
ChildB;
}
ParentA;
So let's say I want to call
ParentA.FunctionA() from within
ChildA.ChildFunction().
1) How would I do this?
2) Is it possible to call
ChildB.ChildFunction() from
ChildA.ChildFunction()?
Thanks in advance!
Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.