// General class for handling stellar bodys
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 Create_Sphere_Mesh (AppTest* app , std::string sector_name );// Creates a mesh for body
void 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 star_name) : Body(star_name);
void Init ( std::string new_name, std::string classification,
long new_luminosity, System* parent_system );
std::string Get_Name ();
void Show_Info(AppTest* app, int x , int y) ; // DIsplay this stars classication on screen.
void Render (AppTest* app); // Should be called for each new frame. needs ticks to update meshes
void Create_Mesh (AppTest* app );// Creates a mesh for star
void Load_Texture(AppTest* app ); // load a texture file from disk
};
};