ConfigFileStackFrame_t Struct Reference

Contains a stack entry used to track files parsed to load the battle field. More...


Data Fields

union {
   struct {
      Bool   flipHoriz: 1
 Flip all coordinates horizontally.
      Bool   flipVert: 1
 Flip all coordinates vertically.
      Bool   transpose: 1
 Transpose horizontal and vertical components.
   } 
   Uint8   flags
 Flags modifying how this frame's data is processed.
}; 
FILE * file
 The open file pointer used to access the file.
char filename [(64-sizeof(FILE *)-sizeof(int)-4)]
 The name of the file.
Uint16 height
 The height of this part of the map.
int line
 The line number of the current position in this file.
Uint16 width
 The width of this part of the map.
Sint16 xoffset
 The horizontal offset value that affects all values in this frame's file.
Sint16 yoffset
 The vertical offset value that affects all values in this frame's file.


Detailed Description

Contains a stack entry used to track files parsed to load the battle field.

Using this instead of just recursion allows the file names stored on the stack to be searched. This is required to notice recursive file includes without a stack overflow.

For internal use only.

Definition at line 132 of file gameconfig.c.


Field Documentation

union { ... }

FILE* ConfigFileStackFrame_t::file

The open file pointer used to access the file.

Definition at line 136 of file gameconfig.c.

Referenced by OpenFile(), ReadInts(), ReadToken(), and StartLoadConfig().

char ConfigFileStackFrame_t::filename[(64-sizeof(FILE *)-sizeof(int)-4)]

The name of the file.

Definition at line 162 of file gameconfig.c.

Referenced by ErrorOut(), OpenFile(), and StartLoadConfig().

Uint8 ConfigFileStackFrame_t::flags

Flags modifying how this frame's data is processed.

Definition at line 167 of file gameconfig.c.

Referenced by AddToConfigList(), and StartLoadConfig().

Bool ConfigFileStackFrame_t::flipHoriz

Flip all coordinates horizontally.

Definition at line 172 of file gameconfig.c.

Referenced by ReadInts(), and StartLoadConfig().

Bool ConfigFileStackFrame_t::flipVert

Flip all coordinates vertically.

Definition at line 176 of file gameconfig.c.

Referenced by ReadInts(), and StartLoadConfig().

Uint16 ConfigFileStackFrame_t::height

The height of this part of the map.

Used to implement horizontal flipping.

Definition at line 158 of file gameconfig.c.

Referenced by ReadInts(), and StartLoadConfig().

int ConfigFileStackFrame_t::line

The line number of the current position in this file.

Definition at line 140 of file gameconfig.c.

Referenced by ErrorOut(), ReadToken(), and StartLoadConfig().

Bool ConfigFileStackFrame_t::transpose

Transpose horizontal and vertical components.

Definition at line 180 of file gameconfig.c.

Referenced by ReadInts(), and StartLoadConfig().

Uint16 ConfigFileStackFrame_t::width

The width of this part of the map.

Used to implement vertical flipping.

Definition at line 154 of file gameconfig.c.

Referenced by ReadInts(), and StartLoadConfig().

Sint16 ConfigFileStackFrame_t::xoffset

The horizontal offset value that affects all values in this frame's file.

Definition at line 145 of file gameconfig.c.

Referenced by ReadAreaParams(), and StartLoadConfig().

Sint16 ConfigFileStackFrame_t::yoffset

The vertical offset value that affects all values in this frame's file.

Definition at line 150 of file gameconfig.c.

Referenced by ReadAreaParams(), and StartLoadConfig().


The documentation for this struct was generated from the following file:
Generated on Mon May 28 04:41:44 2007 for Retro Tank Super Attack by  doxygen 1.5.2