blob: 54633f1f97e0459cdad4aa443d8f95c7568b37b6 (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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_
|