From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/g_planet.h | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/parsec/include/g_planet.h (limited to 'src/parsec/include/g_planet.h') 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_ + + -- cgit v1.2.3