OpenTTD Source: src/newgrf_spritegroup.cpp File Reference

OpenTTD Source 15.3

Functions | Variables
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 >

static U EvalAdjustT | ( | const DeterministicSpriteGroupAdjust & | adjust,
|  | ResolverObject & | object,
|  | ScopeResolver * | scope,
|  | U | last_value,
|  | uint32_t | value
| ) |  |
| static

Definition at line 141 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 54 of file newgrf_spritegroup.cpp.

## ◆ RangeHighComparator()

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

Definition at line 181 of file newgrf_spritegroup.cpp.