OpenTTD Source 20241224-master-gee860a5c8e
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, ScopeResolver *scope, U last_value, uint32_t value)
 
static bool RangeHighComparator (const DeterministicSpriteGroupRange &range, uint32_t value)
 

Variables

SpriteGroupPool _spritegroup_pool ("SpriteGroup")
 
TemporaryStorageArray< int32_t, 0x110 > _temp_store
 

Detailed Description

Handling of primarily NewGRF action 2.

Definition in file newgrf_spritegroup.cpp.

Function Documentation

◆ EvalAdjustT()

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

Definition at line 143 of file newgrf_spritegroup.cpp.

◆ GetVariable()

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

Definition at line 56 of file newgrf_spritegroup.cpp.

◆ RangeHighComparator()

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

Definition at line 183 of file newgrf_spritegroup.cpp.

Variable Documentation

◆ _temp_store

TemporaryStorageArray<int32_t, 0x110> _temp_store

Definition at line 21 of file newgrf_spritegroup.cpp.