Add some more doxygen comments.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3796 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
33759c07c4
commit
ce473ed9fe
|
@ -17,8 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/** \file
|
/**
|
||||||
* * \brief Interface to trig lookup tables
|
* @file
|
||||||
|
*
|
||||||
|
* Interface to trig lookup tables.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _trig_h
|
#ifndef _trig_h
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Action.c
|
* @file action.c
|
||||||
*
|
*
|
||||||
* Functions for setting the action of a droid
|
* Functions for setting the action of a droid.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -17,9 +17,11 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/* AdvVis.c Alex McLean */
|
/**
|
||||||
/* Experiment - possibly only for the faster configurations */
|
* @file advvis.c
|
||||||
/* Makes smooth transitions for terrain visibility */
|
*
|
||||||
|
* Makes smooth transitions for terrain visibility.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "lib/framework/frame.h"
|
#include "lib/framework/frame.h"
|
||||||
#include "lib/gamelib/gtime.h"
|
#include "lib/gamelib/gtime.h"
|
||||||
|
|
4
src/ai.c
4
src/ai.c
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* AI.c
|
* @file ai.c
|
||||||
*
|
*
|
||||||
* AI update functions for the different object types.
|
* AI update functions for the different object types.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* AStar.c
|
* @file aStar.c
|
||||||
*
|
*
|
||||||
* A* based findpath
|
* A* based findpath
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/* Atmos.c - Handles atmospherics such as snow and rain */
|
/**
|
||||||
/* Alex McLean, Pumpkin Studios, EIDOS Interactive */
|
* @file atmos.c
|
||||||
/*
|
*
|
||||||
At present, the water effects are part of the atmos
|
* Handles atmospherics such as snow and rain.
|
||||||
system and aren't properly implemented in the software mode
|
|
||||||
*/
|
*/
|
||||||
#include "lib/framework/frame.h"
|
#include "lib/framework/frame.h"
|
||||||
#include "lib/ivis_common/piedef.h"
|
#include "lib/ivis_common/piedef.h"
|
||||||
|
|
|
@ -17,13 +17,11 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/***************************************************************************/
|
/**
|
||||||
/*
|
* @file aud.c
|
||||||
* Aud.c
|
|
||||||
*
|
*
|
||||||
* Warzone audio wrapper functions
|
* Warzone audio wrapper functions.
|
||||||
*
|
*
|
||||||
* Gareth Jones 16/12/97
|
|
||||||
*/
|
*/
|
||||||
/***************************************************************************/
|
/***************************************************************************/
|
||||||
|
|
||||||
|
|
24
src/bridge.c
24
src/bridge.c
|
@ -30,18 +30,18 @@
|
||||||
#include "effects.h"
|
#include "effects.h"
|
||||||
#include "bridge.h"
|
#include "bridge.h"
|
||||||
|
|
||||||
|
/**
|
||||||
/*
|
* @file bridge.c
|
||||||
Bridge.c
|
* Bridges - currently unused.
|
||||||
Alex McLean, Pumpkin Studios EIDOS Interactive, 1998.
|
*
|
||||||
Handles rendering and placement of bridging sections for
|
* Handles rendering and placement of bridging sections for
|
||||||
traversing water and ravines?! My guess is this won't make it into
|
* traversing water and ravines?! My guess is this won't make it into
|
||||||
the final game, but we'll see...
|
* the final game, but we'll see...
|
||||||
|
* Alex McLean, Pumpkin Studios EIDOS Interactive, 1998.
|
||||||
He was right. It did not make the final game. The code below
|
*
|
||||||
is unused. Can it be reused? - Per, 2007
|
* He was right. It did not make the final game. The code below
|
||||||
*/
|
* is unused. Can it be reused? - Per, 2007
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Returns TRUE or FALSE as to whether a bridge is valid.
|
Returns TRUE or FALSE as to whether a bridge is valid.
|
||||||
|
|
|
@ -17,13 +17,11 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
bucket3D.c - stores object render calls in a linked list renders after bucket sorting objects
|
* @file bucket3D.c
|
||||||
|
*
|
||||||
-------------------------------------------------
|
* Stores object render calls in a linked list renders after bucket sorting objects.
|
||||||
Jeremy Sallis, Pumpkin Studios, EIDOS INTERACTIVE
|
*/
|
||||||
-------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Includes direct access to matrix code */
|
/* Includes direct access to matrix code */
|
||||||
#include "lib/ivis_common/piedef.h"
|
#include "lib/ivis_common/piedef.h"
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/* Handles cheat codes for Warzone */
|
/**
|
||||||
|
* @file cheat.c
|
||||||
|
* Handles cheat codes for Warzone.
|
||||||
|
*/
|
||||||
/* Alex M 19th - Jan. 1999 */
|
/* Alex M 19th - Jan. 1999 */
|
||||||
|
|
||||||
#include "lib/framework/frame.h"
|
#include "lib/framework/frame.h"
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Combat.c
|
* @file combat.c
|
||||||
*
|
*
|
||||||
* Combat mechanics routines.
|
* Combat mechanics routines.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,11 +17,9 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
Component.c
|
* @file component.c
|
||||||
Draws component objects - oh yes indeed.
|
* Draws component objects - oh yes indeed.
|
||||||
Alex M, Pumpkin Studios, EIDOS Interactive, 1997.
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,9 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
*Config.c saves your favourite options to the Registry.
|
* @file config.c
|
||||||
|
* Saves your favourite options to the Registry.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Data.c
|
* @file data.c
|
||||||
*
|
*
|
||||||
* Data loading functions used by the framework resource module
|
* Data loading functions used by the framework resource module.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Design.c
|
* @file design.c
|
||||||
*
|
*
|
||||||
* Functions for design screen.
|
* Functions for design screen.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,9 +17,11 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
// ------------------------------------------------------------------------------------
|
|
||||||
/* Simple short file - only because there was nowhere else for it logically to go */
|
/* Simple short file - only because there was nowhere else for it logically to go */
|
||||||
/* Handes the difficulty level effects on gameplay */
|
/**
|
||||||
|
* @file difficulty.c
|
||||||
|
* Handes the difficulty level effects on gameplay.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Display.c
|
* @file display.c
|
||||||
*
|
*
|
||||||
* Display routines.
|
* Display routines.
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
Display3D.c - draws the 3D terrain view. Both the 3D and pseudo-3D components:-
|
* @file display3D.c
|
||||||
textured tiles.
|
* Draws the 3D terrain view. Both the 3D and pseudo-3D components - textured tiles.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
- Alex McLean & Jeremy Sallis, Pumpkin Studios, EIDOS INTERACTIVE -
|
- Alex McLean & Jeremy Sallis, Pumpkin Studios, EIDOS INTERACTIVE -
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
//
|
/**
|
||||||
// Drive.c
|
* @file drive.c
|
||||||
//
|
* Routines for player driving units about the map.
|
||||||
// Routines for player driving units about the map.
|
*/
|
||||||
//
|
|
||||||
|
|
||||||
#define DEFINE_DRIVE_INLINE
|
#define DEFINE_DRIVE_INLINE
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Droid.c
|
* @file droid.c
|
||||||
*
|
*
|
||||||
* Droid method functions
|
* Droid method functions.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/** \file
|
/** \file
|
||||||
* Definitios for functions.
|
* Definitions for functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __INCLUDED_FUNCTIONDEF_H__
|
#ifndef __INCLUDED_FUNCTIONDEF_H__
|
||||||
|
|
|
@ -17,10 +17,11 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* HCI.c (Human Computer Interface - thanks to Alex for the file name).
|
* @file hci.c
|
||||||
*
|
*
|
||||||
* Functions for the in game interface.
|
* Functions for the in game interface.
|
||||||
|
* (Human Computer Interface - thanks to Alex for the file name).
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
28
src/main.c
28
src/main.c
|
@ -17,9 +17,33 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* main.c
|
* @file main.c
|
||||||
*
|
*
|
||||||
|
* The main file that launches the game and starts up everything.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @mainpage Warzone2100 Code Documentation
|
||||||
|
*
|
||||||
|
* @section intro_sec Introduction
|
||||||
|
*
|
||||||
|
* Welcome to the Warzone2100 Resurrection Project's code library! We are still only starting
|
||||||
|
* to document this code base, but it should already be useful for quickly browsing around the
|
||||||
|
* code and getting an idea of what exists and how things work.
|
||||||
|
*
|
||||||
|
* @section install_sec Where to begin
|
||||||
|
*
|
||||||
|
* @subsection step1 Step 1: Read the wiki documentation
|
||||||
|
*
|
||||||
|
* We have a great deal of documentation on our wiki page at http://wiki.wz2100.net/ which
|
||||||
|
* may help get you started. Please also take notice of our style guide!
|
||||||
|
*
|
||||||
|
* @subsection step2 Step 2: Skim main.c
|
||||||
|
*
|
||||||
|
* You may want to begin reading code with main.c, since this is where execution begins,
|
||||||
|
* and trace code paths from here.
|
||||||
|
*
|
||||||
|
* Have fun!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Get platform defines before checking for them!
|
// Get platform defines before checking for them!
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
along with Warzone 2100; if not, write to the Free Software
|
along with Warzone 2100; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
/*
|
/**
|
||||||
* Power.c
|
* @file power.c
|
||||||
*
|
*
|
||||||
* Store PlayerPower and other power related stuff!
|
* Store PlayerPower and other power related stuff!
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue