OpenTTD Source 20250331-master-g3c15e0c889
newgrf_act3.cpp File Reference

NewGRF Action 0x03 handler. More...

#include "../stdafx.h"
#include "../debug.h"
#include "../house.h"
#include "../newgrf_engine.h"
#include "../newgrf_badge.h"
#include "../newgrf_badge_type.h"
#include "../newgrf_cargo.h"
#include "../newgrf_house.h"
#include "../newgrf_station.h"
#include "../industrytype.h"
#include "../newgrf_canal.h"
#include "../newgrf_airporttiles.h"
#include "../newgrf_airport.h"
#include "../newgrf_object.h"
#include "../error.h"
#include "../vehicle_base.h"
#include "../road.h"
#include "../newgrf_roadstop.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal_vehicle.h"
#include "newgrf_internal.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

static CargoType TranslateCargo (uint8_t feature, uint8_t ctype)
 
static bool IsValidGroupID (uint16_t groupid, const char *function)
 
static void VehicleMapSpriteGroup (ByteReader &buf, uint8_t feature, uint8_t idcount)
 
static void CanalMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void StationMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void TownHouseMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void IndustryMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void IndustrytileMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void CargoMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void ObjectMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void RailTypeMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void RoadTypeMapSpriteGroup (ByteReader &buf, uint8_t idcount, RoadTramType rtt)
 
static void AirportMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void AirportTileMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void RoadStopMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void BadgeMapSpriteGroup (ByteReader &buf, uint8_t idcount)
 
static void FeatureMapSpriteGroup (ByteReader &buf)
 

Detailed Description

NewGRF Action 0x03 handler.

Definition in file newgrf_act3.cpp.

Function Documentation

◆ AirportMapSpriteGroup()

static void AirportMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 489 of file newgrf_act3.cpp.

◆ AirportTileMapSpriteGroup()

static void AirportTileMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 521 of file newgrf_act3.cpp.

◆ BadgeMapSpriteGroup()

static void BadgeMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 610 of file newgrf_act3.cpp.

◆ CanalMapSpriteGroup()

static void CanalMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 157 of file newgrf_act3.cpp.

◆ CargoMapSpriteGroup()

static void CargoMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 337 of file newgrf_act3.cpp.

◆ FeatureMapSpriteGroup()

static void FeatureMapSpriteGroup ( ByteReader buf)
static

Definition at line 661 of file newgrf_act3.cpp.

◆ IndustryMapSpriteGroup()

static void IndustryMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 273 of file newgrf_act3.cpp.

◆ IndustrytileMapSpriteGroup()

static void IndustrytileMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 305 of file newgrf_act3.cpp.

◆ IsValidGroupID()

static bool IsValidGroupID ( uint16_t  groupid,
const char *  function 
)
static

Definition at line 68 of file newgrf_act3.cpp.

◆ ObjectMapSpriteGroup()

static void ObjectMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 364 of file newgrf_act3.cpp.

◆ RailTypeMapSpriteGroup()

static void RailTypeMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 423 of file newgrf_act3.cpp.

◆ RoadStopMapSpriteGroup()

static void RoadStopMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 553 of file newgrf_act3.cpp.

◆ RoadTypeMapSpriteGroup()

static void RoadTypeMapSpriteGroup ( ByteReader buf,
uint8_t  idcount,
RoadTramType  rtt 
)
static

Definition at line 455 of file newgrf_act3.cpp.

◆ StationMapSpriteGroup()

static void StationMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 183 of file newgrf_act3.cpp.

◆ TownHouseMapSpriteGroup()

static void TownHouseMapSpriteGroup ( ByteReader buf,
uint8_t  idcount 
)
static

Definition at line 241 of file newgrf_act3.cpp.

◆ TranslateCargo()

static CargoType TranslateCargo ( uint8_t  feature,
uint8_t  ctype 
)
static

Definition at line 36 of file newgrf_act3.cpp.

◆ VehicleMapSpriteGroup()

static void VehicleMapSpriteGroup ( ByteReader buf,
uint8_t  feature,
uint8_t  idcount 
)
static

Definition at line 78 of file newgrf_act3.cpp.