GRFFile Struct Reference

Dynamic data of a loaded NewGRF. More...

#include <newgrf.h>

Public Member Functions

uint32 GetParam (uint number) const
 Get GRF Parameter with range checking.

Data Fields

char * filename
bool is_ottdfile
uint32 grfid
uint16 sprite_offset
byte grf_version
SpriteID spriteset_start
int spriteset_numsets
int spriteset_numents
int spriteset_feature
int spritegroups_count
struct SpriteGroup ** spritegroups
uint sound_offset
StationSpec ** stations
HouseSpec ** housespec
IndustrySpec ** industryspec
IndustryTileSpec ** indtspec
uint32 param [0x80]
uint param_end
 one more than the highest set parameter
GRFLabellabel
 Pointer to the first label. This is a linked list, not an array.
uint8 cargo_max
CargoLabelcargo_list
uint8 cargo_map [NUM_CARGO]
uint8 railtype_max
RailTypeLabel * railtype_list
RailType railtype_map [RAILTYPE_END]
int traininfo_vehicle_pitch
 Vertical offset for draing train images in depot GUI and vehicle details.
int traininfo_vehicle_width
 Width (in pixels) of a 8/8 train vehicle in depot GUI and vehicle details.
uint32 grf_features
 Bitset of GrfSpecFeature the grf uses.
PriceMultipliers price_base_multipliers
 Price base multipliers as set by the grf.

Detailed Description

Dynamic data of a loaded NewGRF.

Definition at line 74 of file newgrf.h.


The documentation for this struct was generated from the following file:

Generated on Sat Nov 20 20:59:58 2010 for OpenTTD by  doxygen 1.6.1