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 69 70 71 72 73 74
|
/*****************************************************************************
** This is part of the SpaceZero program
** Copyleft (C) 2006-2011 M.Revenga
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 3), or
** (at your option) any later version, as published by the Free Software
** Foundation.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
******************************************************************************/
/************* SpaceZero M.R.H. 2006-2011 ******************
Author: M.Revenga
E-mail: mrevenga at users.sourceforge.net
version 0.80 May 2011
****/
#ifndef _SPACE_
#define _SPACE_
#include <gtk/gtk.h>
#include <stdio.h>
#include "objects.h"
#define SIGNAL0 SIGRTMIN
#define MALLOC_CHECK_ 2
#define NULO 0
gint MainLoop(gpointer data);
gint Quit(GtkWidget *widget,gpointer gdata);
void DrawInfo(GdkPixmap *pixmap,Object *);
int UpdateObjs(void);
void UpdateShip(Object *);
void key_eval(struct Keys *key);
void Collision(struct HeadObjList *);
gint TimerCreateObj(gpointer dat);
int IsValidPosition(float x,float y,float r);
float PlanetAtraction(float *fx,float *fy,float x,float y,float m);
void CreateUniverse(int,int,struct HeadObjList *,char **);
int PrintfObjInfo(FILE *fp,Object *obj);
Object *ChooseInitPlanet(struct HeadObjList lheadobjs);
void CreateShips(struct HeadObjList *lheadobjs);
int CheckGame(char *);
void GetGold(void);
void GetPoints(struct HeadObjList hl,int proc,struct Player *p);
void Density(void);
void GetUniverse(void);
void NetComm(void);
#endif
|