From 3aa98f48bdd89e75f3e06af03e4216318ad1f924 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Sat, 2 Jul 2011 21:50:47 +1000 Subject: [PATCH] Add the files help.c and help.h These file will eventually contain help text describing how to play the Star Traders game. --- src/Makefile.am | 1 + src/README | 2 ++ src/help.c | 32 ++++++++++++++++++++++++++++++++ src/help.h | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 src/help.c create mode 100644 src/help.h diff --git a/src/Makefile.am b/src/Makefile.am index e63a5ed..5e4d35d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,6 +32,7 @@ bin_PROGRAMS = trader trader_SOURCES = \ trader.c trader.h \ globals.c globals.h \ + help.c help.h \ intf.c intf.h \ utils.c utils.h \ system.h diff --git a/src/README b/src/README index bdacd14..31a5b1f 100644 --- a/src/README +++ b/src/README @@ -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 + 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 intf.c - Basic text input/output routines utils.h - Utility functions header file diff --git a/src/help.c b/src/help.c new file mode 100644 index 0000000..cd83011 --- /dev/null +++ b/src/help.c @@ -0,0 +1,32 @@ +/************************************************************************ +* * +* Star Traders: A Game of Interstellar Trading * +* Copyright (C) 1990-2011, John Zaitseff * +* * +************************************************************************/ + +/* + Author: John Zaitseff + $Id$ + + This file, help.c, contains the actual implementation of help routines + 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 "system.h" +#include "help.h" diff --git a/src/help.h b/src/help.h new file mode 100644 index 0000000..5836a5c --- /dev/null +++ b/src/help.h @@ -0,0 +1,35 @@ +/************************************************************************ +* * +* Star Traders: A Game of Interstellar Trading * +* Copyright (C) 1990-2011, John Zaitseff * +* * +************************************************************************/ + +/* + Author: John Zaitseff + $Id$ + + This file, help.h, contains declarations for help text routines 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_HELP_H +#define included_HELP_H 1 + + +#endif /* included_HELP_H */