Original Post
Hi,
I am making an engine where I need interaction beteww to class objects.
Let''s say: I got to different classes, (and one instance of each, Object1 = new Class1, end Object2 = new Class2).
In Object1 I need to access functions in Object2, and vica versa.
Like this (very simplified):
Class1{
...
blabla = Object2->GetPos();
}
Class2{
....
Object1->AddBullet(pos,velocity);
}
What is the best way to do this (Get a class-pointer to each other)?
Sorry about my poor english (and understanding).
Erik