-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolarSystem.h
More file actions
32 lines (24 loc) · 897 Bytes
/
SolarSystem.h
File metadata and controls
32 lines (24 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SOLARSYSTEM_H
#define SOLARSYSTEM_H
#include "Body.h"
#define X_AXIS 1
#define Y_AXIS 2
#define Z_AXIS 3
#define ABS_DIST 4
#define G 0.001
class SolarSystem
{
public:
// Initialization methods
SolarSystem(char *fileName);
int loadSystemFromFile(); // Retrieve all the informations about each body
// Graphics methods
void display(int detailsOn, int projOn, int mode); // Display in depth buffer each body
// Physics methods
void interactBodies(); // Calculates all the interactions two by two
private:
Body **body; // The vector which saves the pointers to each body object
int bodyNumber; // The number of bodies in solar system
char *sysDoc; // The file that contains all the informations to the planets
};
#endif // SOLARSYSTEM_H