1
0
mirror of https://git.zap.org.au/git/trader.git synced 2025-02-02 15:08:13 -05:00

Add source files game.c and game.h

These files will eventually contain many of the game functions.
This commit is contained in:
John Zaitseff 2011-07-04 15:54:39 +10:00
parent 4d5c5b70ca
commit 9a39c84bf4
5 changed files with 78 additions and 0 deletions

View File

@ -32,6 +32,7 @@ bin_PROGRAMS = trader
trader_SOURCES = \
trader.c trader.h \
globals.c globals.h \
game.c game.h \
help.c help.h \
intf.c intf.h \
utils.c utils.h \

View File

@ -13,6 +13,8 @@ source code is split up among the following files:
system.h - All system header files are included here
globals.h - Global game constants and variables
globals.c - Global game variables
game.h - Game functions header file
game.c - Game functions for Star Traders
help.h - Help text routines header file
help.c - Help text routines: how to play Star Traders
intf.h - Basic text input/output header file

38
src/game.c Normal file
View File

@ -0,0 +1,38 @@
/************************************************************************
* *
* Star Traders: A Game of Interstellar Trading *
* Copyright (C) 1990-2011, John Zaitseff *
* *
************************************************************************/
/*
Author: John Zaitseff <J.Zaitseff@zap.org.au>
$Id$
This file, game.c, contains the implementation of the game functions
used in Star Traders.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
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, see http://www.gnu.org/licenses/.
*/
#include "system.h"
#include "globals.h"
#include "game.h"
/************************************************************************
* Game function definitions *
************************************************************************/

35
src/game.h Normal file
View File

@ -0,0 +1,35 @@
/************************************************************************
* *
* Star Traders: A Game of Interstellar Trading *
* Copyright (C) 1990-2011, John Zaitseff *
* *
************************************************************************/
/*
Author: John Zaitseff <J.Zaitseff@zap.org.au>
$Id$
This file, game.h, contains declarations for the main game functions
used in Star Traders.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
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, see http://www.gnu.org/licenses/.
*/
#ifndef included_GAME_H
#define included_GAME_H 1
#endif /* included_GAME_H */

View File

@ -45,6 +45,8 @@
#include "system.h"
#include "globals.h"
#include "game.h"
#include "help.h"
#include "intf.h"
#include "utils.h"