diff --git a/src/Makefile.am b/src/Makefile.am index 1fa4ee9..f20e63a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,6 +34,7 @@ trader_SOURCES = \ globals.c globals.h \ game.c game.h \ move.c move.h \ + exch.c exch.h \ fileio.c fileio.h \ help.c help.h \ intf.c intf.h \ diff --git a/src/README b/src/README index bc63448..5baa2f8 100644 --- a/src/README +++ b/src/README @@ -12,6 +12,7 @@ source code is split up among the following files: globals.c globals.h - Global game constants and variables game.c game.h - Game start and end routines move.c move.h - Routines for making and processing a move + exch.c exch.h - Stock Exchange and Bank routines fileio.c fileio.h - Load and save game file routines help.c help.h - Help text routines: how to play Star Traders intf.c intf.h - Basic text input/output routines diff --git a/src/exch.c b/src/exch.c new file mode 100644 index 0000000..6d1fba8 --- /dev/null +++ b/src/exch.c @@ -0,0 +1,42 @@ +/************************************************************************ +* * +* Star Traders: A Game of Interstellar Trading * +* Copyright (C) 1990-2011, John Zaitseff * +* * +************************************************************************/ + +/* + Author: John Zaitseff + $Id$ + + This file, exch.c, contains the implementation of functions dealing + with the Interstellar Stock Exchange and Trading Bank as 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 "trader.h" + + +/************************************************************************ +* Stock Exchange function definitions * +************************************************************************/ + +void exchange_stock (void) +{ + // @@@ To be written +} diff --git a/src/exch.h b/src/exch.h new file mode 100644 index 0000000..7dc8d59 --- /dev/null +++ b/src/exch.h @@ -0,0 +1,42 @@ +/************************************************************************ +* * +* Star Traders: A Game of Interstellar Trading * +* Copyright (C) 1990-2011, John Zaitseff * +* * +************************************************************************/ + +/* + Author: John Zaitseff + $Id$ + + This file, exch.h, contains declarations for functions dealing with the + Interstellar Stock Exchange and Trading Bank as 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_EXCH_H +#define included_EXCH_H 1 + + +/************************************************************************ +* Stock Exchange function declarations * +************************************************************************/ + +extern void exchange_stock (void); + + +#endif /* included_EXCH_H */ diff --git a/src/game.c b/src/game.c index 828f5d9..cd63c02 100644 --- a/src/game.c +++ b/src/game.c @@ -487,11 +487,6 @@ void end_game (void) free(buf); } -void exchange_stock (void) -{ - // @@@ To be written -} - /*----------------------------------------------------------------------- Function: show_map - Display the galaxy map on the screen diff --git a/src/game.h b/src/game.h index 1a6a4b2..a073e29 100644 --- a/src/game.h +++ b/src/game.h @@ -42,8 +42,6 @@ extern void init_game (void); extern void end_game (void); -extern void exchange_stock (void); - extern void show_map (bool show_moves); extern void show_status (int num); extern double total_value (int num); diff --git a/src/trader.h b/src/trader.h index 2a6debc..74b0762 100644 --- a/src/trader.h +++ b/src/trader.h @@ -51,6 +51,7 @@ #include "globals.h" #include "game.h" #include "move.h" +#include "exch.h" #include "fileio.h" #include "help.h" #include "intf.h"