class Body {
private:
std::string name; // This meshes name
csRef <iMeshWrapper> mesh ; // A mesh for this body
csVector3 pos ;
public:
Body(std::string body_name);
void Body::Create_Sphere_Mesh (AppTest* app , std::string sector_name );// Creates a mesh for body
void Body::Load_Texture(AppTest* app, std::string texturefile); // load a texture file from disk
};
// Star, stores all the information about a star
class Star: public Body {
private:
System* system;
//std::string name;
std::string classification;
long luminosity;
long mass;
public:
Star(std::string name);
void Star::Init ( std::string new_name, std::string classification,
long new_luminosity, System* parent_system );
std::string Star::Get_Name ();
void Star::Show_Info(AppTest* app, int x , int y) ; // DIsplay this stars classication on screen.
void Star::Render (AppTest* app); // Should be called for each new frame. needs ticks to update meshes
void Star::Create_Mesh (AppTest* app );// Creates a mesh for star
void Star::Load_Texture(AppTest* app ); // load a texture file from disk
};