[ Home ]

wolf.c File Reference

Wolfenstein 3-D data file decoder. More...

#include <stdio.h>
#include "wolf.h"
#include "../../common/platform.h"
#include "../../common/common_utils.h"
#include "../../filesys/file.h"
#include "../../memory/memory.h"
#include "../../loaders/tga.h"
#include "../../image/image.h"
#include "../../string/wtstring.h"
#include "../core/wolfcore.h"
#include "../../pak/pak.h"
#include "../wolfcore_decoder.h"

Include dependency graph for wolf.c:


Functions

PUBLIC char * WL1_GetReduxGFXFileName (W32 id)
 Returns lump name string.
PUBLIC char * WL6_GetReduxGFXFileName (W32 id)
 Returns lump name string.
PRIVATE wtBoolean wolf3d_gfx (char *dict, char *head, char *graph, W32 start, W32 end, picNum_t *picNum, char *(*GetReduxGFXFileName)(W32))
 Converts Wolf3D graphic data.
PUBLIC void wolffull_decoder (void)
 Decodes Wolfenstein 3-D full version.
void wolfshare1_decoder (void)
 Decodes Wolfenstein 3-D Shareware version.
void wolfshare14_decoder (void)
 Decodes Wolfenstein 3-D Shareware 1.4 version.

Variables

W8 wolf_gamepal []
W32 _filterScale
wtBoolean _doRedux
wtBoolean _outputInDirectory
PRIVATE W32 CeilingColourWL6 []
PRIVATE char * WL6_songs []
PRIVATE char * songTitles []
PRIVATE parTimes_t parTimesWL6 []

Detailed Description

Wolfenstein 3-D data file decoder.

Author:
Michael Liebscher
Date:
2007-2009

Function Documentation

PUBLIC char* WL1_GetReduxGFXFileName ( W32  id  ) 

Returns lump name string.

Parameters:
[in] id Chunk value to get string name for.
Returns:
NULL on error, otherwise string name.

Here is the caller graph for this function:

PUBLIC char* WL6_GetReduxGFXFileName ( W32  id  ) 

Returns lump name string.

Parameters:
[in] id Chunk value to get string name for.
Returns:
NULL on error, otherwise string name.

Here is the caller graph for this function:

PRIVATE wtBoolean wolf3d_gfx ( char *  dict,
char *  head,
char *  graph,
W32  start,
W32  end,
picNum_t *  picNum,
char *(*)(W32)  GetReduxGFXFileName 
)

Converts Wolf3D graphic data.

Parameters:
[in] dict Name of dictionary file to load.
[in] head Name of header file to load.
[in] graph Name of graphics file to load.
[in] start Offset to start of sprite data
[in] end Offset to end of sprite data
[in] picNum Pointer to picNum_t structure to
[in] GetReduxGFXFileName Call back function to get file names for graphics data.
Returns:
On success true, otherwise false.

Here is the call graph for this function:

Here is the caller graph for this function:

PUBLIC void wolffull_decoder ( void   ) 

Decodes Wolfenstein 3-D full version.

Returns:
Nothing.

Here is the call graph for this function:

void wolfshare14_decoder ( void   ) 

Decodes Wolfenstein 3-D Shareware 1.4 version.

Returns:
Nothing.

Here is the call graph for this function:

void wolfshare1_decoder ( void   ) 

Decodes Wolfenstein 3-D Shareware version.

Returns:
Nothing.


Variable Documentation

PRIVATE W32 CeilingColourWL6[]

Initial value:

{
    0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0xbfbf,
    0x4e4e,0x4e4e,0x4e4e,0x1d1d,0x8d8d,0x4e4e,0x1d1d,0x2d2d,0x1d1d,0x8d8d,
    0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x1d1d,0x2d2d,0xdddd,0x1d1d,0x1d1d,0x9898,

    0x1d1d,0x9d9d,0x2d2d,0xdddd,0xdddd,0x9d9d,0x2d2d,0x4d4d,0x1d1d,0xdddd,
    0x7d7d,0x1d1d,0x2d2d,0x2d2d,0xdddd,0xd7d7,0x1d1d,0x1d1d,0x1d1d,0x2d2d,
    0x1d1d,0x1d1d,0x1d1d,0x1d1d,0xdddd,0xdddd,0x7d7d,0xdddd,0xdddd,0xdddd
}

PRIVATE char* songTitles[]

Initial value:

 
{
    "CORNER",
    "IntoTheDungeons",
    "WarMarch",
    "GetThem",
    "PoundingHeadache",
    "HITLWLTZ",
    "INTROCW3",
    "NAZI_NOR",
    "NAZI_OMI",
    "P.O.W",
    "SALUTE",
    "Searching",
    "Suspense",
    "VICTORS",
    "WONDERIN",
    "FUNKYOU",
    "ENDLEVEL",
    "GoingAfterHitler",
    "PREGNANT",
    "UltimateConquest",
    "TheNaziRap",
    "ZeroHour",
    "TwelfthHour",
    "ROSTER",
    "URAHERO",
    "VICMARCH",
    "PACMAN"
}