P
padulg
Hello at all,
I have a problem: I have a class named "ball" with a method named
"split".
This is the declaration in ball.h:
class ball : public procObject
{
public:
ball();
ball(GLfloat size, GLfloat x_pos, GLfloat y_pos, GLfloat z_pos);
~ball();
GLvoid draw(GLint mode); //implemented
ball* clone();
list<ball*> split(GLint ntimes);
};
This is th implementation in ball.cpp
list<ball*> ball::split(GLint ntimes)
{
list<ball*> new_balls;
.....
....
return new_balls;
}
Is it possible, and if it is how can I do that?
I have a problem: I have a class named "ball" with a method named
"split".
This is the declaration in ball.h:
class ball : public procObject
{
public:
ball();
ball(GLfloat size, GLfloat x_pos, GLfloat y_pos, GLfloat z_pos);
~ball();
GLvoid draw(GLint mode); //implemented
ball* clone();
list<ball*> split(GLint ntimes);
};
This is th implementation in ball.cpp
list<ball*> ball::split(GLint ntimes)
{
list<ball*> new_balls;
.....
....
return new_balls;
}
Is it possible, and if it is how can I do that?