OpenTTD Source 20241224-master-gf74b0cf984
core Directory Reference

Files

 alloc_func.cpp
 Functions to 'handle' memory allocation errors.
 
 alloc_func.hpp
 Functions related to the allocation of memory.
 
 alloc_type.hpp
 Helper types related to the allocation of memory.
 
 backup_type.hpp
 Class for backupping variables and making sure they are restored later.
 
 bitmath_func.hpp
 Functions related to bit mathematics.
 
 container_func.hpp
 Some simple functions to help with accessing containers.
 
 endian_func.hpp
 Function to handling different endian machines.
 
 endian_type.hpp
 Definition of various endian-dependant macros.
 
 enum_type.hpp
 Type (helpers) for enums.
 
 format.hpp
 String formatting functions and helpers.
 
 geometry_func.cpp
 Geometry functions.
 
 geometry_func.hpp
 Geometry functions.
 
 geometry_type.hpp
 All geometry types in OpenTTD.
 
 kdtree.hpp
 K-d tree template specialised for 2-dimensional Manhattan geometry.
 
 math_func.cpp
 Math functions.
 
 math_func.hpp
 Integer math functions.
 
 mem_func.hpp
 Functions related to memory operations.
 
 multimap.hpp
 Multimap with deterministic ordering of items with equal keys.
 
 overflowsafe_type.hpp
 An overflow safe integer-like type.
 
 pool_func.cpp
 Implementation of PoolBase methods.
 
 pool_func.hpp
 Some methods of Pool are placed here in order to reduce compilation time and binary size.
 
 pool_type.hpp
 Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle, Town, and other indexed items.
 
 random_func.cpp
 Implementation of the pseudo random generator.
 
 random_func.hpp
 Pseudo random number generator.
 
 smallstack_type.hpp
 Minimal stack that uses a pool to avoid pointers and doesn't allocate any heap memory if there is only one valid item.
 
 strong_typedef_type.hpp
 Type (helpers) for making a strong typedef that is a distinct type.