diff options
Diffstat (limited to 'src/parsec/include/g_planet.h')
| -rw-r--r-- | src/parsec/include/g_planet.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/parsec/include/g_planet.h b/src/parsec/include/g_planet.h new file mode 100644 index 0000000..54633f1 --- /dev/null +++ b/src/parsec/include/g_planet.h @@ -0,0 +1,47 @@ +/* + * PARSEC HEADER: s_planet.h + */ + +#ifndef _S_PLANET_H_ +#define _S_PLANET_H_ + + +// planet limits and constants ------------------------------------------------ +// +#define MAX_PLANET_NAME 255 +#define MAX_RING_TEXNAME 63 + +#define PLANET_RING_SEGMENTS 128 + +#define PLANET_RING_TEXTURE "ringtex1" +#define PLANET_RING_TEX_WIDTH 16 +#define PLANET_RING_TEX_HEIGHT 64 + + +// planet custom type structure ----------------------------------------------- +// +struct Planet : PlanetObject { + + bams_t RotSpeed; + bams_t CurOrbitPos; + bams_t OrbitSpeed; + geomv_t OrbitRadius; + GenObject* OrbitParent; + int HasRing; + geomv_t RingInnerRadius; + geomv_t RingOuterRadius; + char RingTexName[ MAX_RING_TEXNAME + 1 ]; + TextureMap* RingTexture; + + char Name[ MAX_PLANET_NAME + 1 ]; + int NumOrbitShips; +}; + + +// external functions + +// ... + +#endif // _S_PLANET_H_ + + |
