OpenTTD Source 20260208-master-g43af8e94d0
newgrf_spritegroup.cpp File Reference

Handling of primarily NewGRF action 2. More...

#include "stdafx.h"
#include "debug.h"
#include "newgrf_spritegroup.h"
#include "newgrf_profiling.h"
#include "core/pool_func.hpp"
#include "safeguards.h"

Go to the source code of this file.

Functions

static uint32_t GetVariable (const ResolverObject &object, ScopeResolver *scope, uint8_t variable, uint32_t parameter, bool &available)
template<typename U, typename S>
static U EvalAdjustT (const DeterministicSpriteGroupAdjust &adjust, ResolverObject &object, ScopeResolver *scope, U last_value, uint32_t value)
static bool RangeHighComparator (const DeterministicSpriteGroupRange &range, uint32_t value)

Variables

SpriteGroupPool _spritegroup_pool ("SpriteGroup")

Detailed Description

Handling of primarily NewGRF action 2.

Definition in file newgrf_spritegroup.cpp.

Function Documentation

◆ EvalAdjustT()

template<typename U, typename S>
U EvalAdjustT ( const DeterministicSpriteGroupAdjust & adjust,
ResolverObject & object,
ScopeResolver * scope,
U last_value,
uint32_t value )
static

Definition at line 145 of file newgrf_spritegroup.cpp.

◆ GetVariable()

uint32_t GetVariable ( const ResolverObject & object,
ScopeResolver * scope,
uint8_t variable,
uint32_t parameter,
bool & available )
inlinestatic

Definition at line 54 of file newgrf_spritegroup.cpp.

◆ RangeHighComparator()

bool RangeHighComparator ( const DeterministicSpriteGroupRange & range,
uint32_t value )
static

Definition at line 185 of file newgrf_spritegroup.cpp.