#ifndef INCLUDES_H
#define INCLUDES_H 1

#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

#include <string.h>
#include <math.h>
#include <ctype.h>

#ifdef WIN32
    #include <windows.h>
#endif

#include <sdl/sdl.h>

#undef PI
#define PI 3.14159265358979323846264338327950288419716939937510582097494459230\
781640628620899862803482534211706798214808651328230664709384460955058223172535\
940812848111745028410270193852110555964462294895493038196442881097566593344612\
847564823378678316527120190914564856692346034861045432664821339360726024914127\
3724587006606315588174881520920962829254091715364367892590360011330530548820466

enum {
    VERSION = 2,
    SAVEDGAME_SIZE = 6112
};

struct ship_t {
    char name[21];
    unsigned long money;
    unsigned short type, rot;
    unsigned short hold[128];
    double xp, yp, xs, ys;
};

struct savegame_t {
    struct ship_t ship[16];
};

#endif
