-
Notifications
You must be signed in to change notification settings - Fork 4
/
atlantis.h
68 lines (55 loc) · 1.86 KB
/
atlantis.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Atlantis v1.0 13 September 1993
* Copyright 1993 by Russell Wallace
*
* This program may be freely used, modified and distributed. It may not be
* sold or used commercially without prior written permission from the author.
*/
#ifndef ATLANTIS_H
#define ATLANTIS_H
#include "keywords.h"
#include "settings.h"
#include "items.h"
#include "bool.h"
#include <stdio.h>
struct region;
struct faction;
struct stream;
struct unit;
struct ship;
struct building;
extern int ignore_password;
int distribute(int old, int nyu, int n);
int getseen(struct region *r, const struct faction *f, struct unit **uptr);
int effskill(const struct unit * u, int i);
int lovar(int n);
bool isallied(const struct unit * u, const struct unit * u2);
int read_orders(struct stream * strm);
int readorders(const char *filename);
void processorders(void);
void process_form(struct unit *u, struct region *r);
void write_reports(struct faction * f);
const char *gamedate(void);
void initgame(void);
int writegame(void);
int readgame(void);
int read_game(const char *filenam);
int write_game(const char *filename);
void writemap(FILE *);
void writesummary(void);
void update_world(int minx, int miny, int maxx, int maxy);
int autoworld(const char * playerfile);
void connectregions(void);
void transform(int *x, int *y, int kwd);
void rnd_seed(unsigned long x);
void createcontinent(void);
void addplayers(struct region * r, struct stream * strm);
void addunits(void);
int cansee(const struct faction * f, struct region * r, const struct unit * u);
struct region *movewhere(struct region * r);
int effskill(const struct unit * u, int i);
struct faction * addplayer(struct region * r, const char * email, int no);
const char *regionid(const struct region * r, const struct faction *f);
struct unit *shipowner(struct region * r, const struct ship * sh);
void coor_transform(coor_t transform, int *x, int *y);
#endif