Mercurial > ~darius > hgwebdir.cgi > paradise_server
comparison src/planets.h @ 6:8c6d5731234d
First entry of Paradise Server 2.9 patch 10 Beta
author | darius |
---|---|
date | Sat, 06 Dec 1997 04:37:04 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5:054275999194 | 6:8c6d5731234d |
---|---|
1 /*-------------------------------------------------------------------------- | |
2 NETREK II -- Paradise | |
3 | |
4 Permission to use, copy, modify, and distribute this software and its | |
5 documentation, or any derivative works thereof, for any NON-COMMERCIAL | |
6 purpose and without fee is hereby granted, provided that this copyright | |
7 notice appear in all copies. No representations are made about the | |
8 suitability of this software for any purpose. This software is provided | |
9 "as is" without express or implied warranty. | |
10 | |
11 Xtrek Copyright 1986 Chris Guthrie | |
12 Netrek (Xtrek II) Copyright 1989 Kevin P. Smith | |
13 Scott Silvey | |
14 Paradise II (Netrek II) Copyright 1993 Larry Denys | |
15 Kurt Olsen | |
16 Brandon Gillespie | |
17 --------------------------------------------------------------------------*/ | |
18 | |
19 #include "defs.h" /* for GWIDTH */ | |
20 | |
21 | |
22 /*--------------------------------NUMBER DEFINES-------------------------*/ | |
23 | |
24 /*-----------------------------------------------------------------------*/ | |
25 | |
26 | |
27 | |
28 /*------------------------PLANETS FUNCTION PROTOTYPES----------------------*/ | |
29 void gen_planets(); /* generate planets positions */ | |
30 void popplanets(); /* update planets pop */ | |
31 void growplanets(); /* grow planets facilities */ | |
32 void plfight(); /* do fighting for planets */ | |
33 void save_planets(); /* save the planets to '.planets' file */ | |
34 /*-------------------------------------------------------------------------*/ | |
35 | |
36 /*--------------------------PLANET UTILITY FUNCTIONS-----------------------*/ | |
37 #ifdef __STDC__ | |
38 extern int | |
39 place_stars(struct planet * first, int count, int border, | |
40 int minpad, int maxpad, struct planet * othercheck, | |
41 int ocount); | |
42 extern void zero_plflags(struct planet * first, int count); | |
43 extern void | |
44 randomize_atmospheres(struct planet * first, int count, | |
45 int p1, int p2, int p3, int p4); | |
46 extern void | |
47 randomize_resources(struct planet * first, int count, | |
48 int nm, int nd, int na); | |
49 extern void justify_galaxy(int numsystems); | |
50 #else | |
51 extern int place_stars(); | |
52 extern void zero_plflags(); | |
53 extern void randomize_atmospheres(); | |
54 extern void randomize_resources(); | |
55 extern void justify_galaxy(); | |
56 #endif | |
57 void pl_neworbit(); | |
58 /*-------------------------------------------------------------------------*/ | |
59 | |
60 | |
61 /*----------END OF FILE-------*/ |