Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
constants.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PEER_ID_INEXISTENT   0
 
#define PEER_ID_SERVER   1
 
#define INTERNET_SIMULATOR   0
 
#define INTERNET_SIMULATOR_PACKET_LOSS   10
 
#define CONNECTION_TIMEOUT   30
 
#define LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS   0
 
#define BLOCK_SEND_DISABLE_LIMITS_MAX_D   1
 
#define DTIME_LIMIT   2.5f
 
#define MAX_MAP_GENERATION_LIMIT   (31007)
 
#define BS   10.0f
 
#define MAP_BLOCKSIZE   16
 
#define PLAYER_DEFAULT_STEPHEIGHT   0.6f
 
#define PLAYER_INVENTORY_SIZE   (8 * 4)
 
#define PLAYER_MAX_HP_DEFAULT   20
 
#define PLAYER_MAX_BREATH_DEFAULT   10
 
#define PLAYER_FILE_ALTERNATE_TRIES   1000
 
#define SCREENSHOT_MAX_SERIAL_TRIES   1000
 
#define TTF_DEFAULT_FONT_SIZE   (16)
 

Macro Definition Documentation

◆ BLOCK_SEND_DISABLE_LIMITS_MAX_D

#define BLOCK_SEND_DISABLE_LIMITS_MAX_D   1

◆ BS

#define BS   10.0f

Referenced by ClientMap::ClientMap(), MapBlockMesh::MapBlockMesh(), OffsetCameraStep::OffsetCameraStep(), Player::Player(), PlayerSAO::PlayerSAO(), RemotePlayer::RemotePlayer(), SmokePuffCSO::SmokePuffCSO(), ServerEnvironment::activateObjects(), add_area_node_boxes(), add_object_boxes(), ServerEnvironment::addActiveObjectRaw(), ParticleManager::addNodeParticle(), GenericCAO::addToScene(), TestCAO::addToScene(), LocalPlayer::applyControl(), MapblockMeshGenerator::blendLight(), MapBlockBspTree::buildTree(), Hud::calculateScreenPos(), checkFloatPos(), Server::checkInteractDistance(), collision_check_intersection(), collisionMoveSimple(), Environment::continueRaycast(), convertNodeboxesToMesh(), createSpecialNodeMesh(), DirectionalLight::createSplitMatrices(), Client::CSMClampPos(), Client::CSMClampRadius(), Client::CSMGetNode(), ServerEnvironment::deactivateFarObjects(), GenericCAO::directReportPunch(), MapblockMeshGenerator::drawAllfacesNode(), Hud::drawBlockBounds(), MapblockMeshGenerator::drawFencelikeNode(), MapblockMeshGenerator::drawFirelikeNode(), MapblockMeshGenerator::drawFirelikeQuad(), MapblockMeshGenerator::drawGlasslikeFramedNode(), MapblockMeshGenerator::drawGlasslikeNode(), MapblockMeshGenerator::drawLiquidBottom(), MapblockMeshGenerator::drawLiquidSides(), MapblockMeshGenerator::drawLiquidTop(), Hud::drawLuaElements(), Camera::drawNametags(), MapblockMeshGenerator::drawNode(), MapblockMeshGenerator::drawNodeboxNode(), MapblockMeshGenerator::drawPlantlike(), MapblockMeshGenerator::drawPlantlikeQuad(), MapblockMeshGenerator::drawPlantlikeRootedNode(), MapblockMeshGenerator::drawRaillikeNode(), Game::drawScene(), MapblockMeshGenerator::drawSignlikeNode(), MapblockMeshGenerator::drawSolidNode(), MapblockMeshGenerator::drawTorchlikeNode(), fillViewConeBlock(), Server::findSpawnPos(), NodeDefManager::fixSelectionBoxIntUnion(), MapblockMeshGenerator::generateCuboidTextureCoords(), ServerEnvironment::getAddedActiveObjects(), ClientMap::getBackgroundBrightness(), GenericCAO::getCollisionBox(), LuaEntitySAO::getCollisionBox(), PlayerSAO::getCollisionBox(), MapblockMeshGenerator::getCornerLevel(), LuaEntitySAO::getDescription(), LocalPlayer::getEyeOffset(), PlayerSAO::getEyeOffset(), LocalPlayer::getFootstepNodePos(), Camera::getFrustumCuller(), GenericCAO::getLightPosition(), LocalPlayer::getLightPosition(), DirectionalLight::getMaxFarValue(), LuaEntitySAO::getMinimumSavedMovement(), ServerActiveObject::getMinimumSavedMovement(), RemoteClient::GetNextBlocks(), MapblockMeshGenerator::getNodeBoxMask(), getNodeBoxUnion(), ParticleManager::getNodeParticleParams(), GenericCAO::getPosition(), ServerEnvironment::getRemovedActiveObjects(), ServerEnvironment::getSelectedActiveObjects(), LuaEntitySAO::getSelectionBox(), PlayerSAO::getSelectionBox(), getVisibleBrightness(), Clouds::gridFilled(), LocalPlayer::handleAutojump(), Client::handleCommand_AuthAccept(), Server::handleCommand_Damage(), Server::handleCommand_Interact(), Server::handleCommand_InventoryAction(), Client::handleCommand_Movement(), Client::handleCommand_PlaySound(), isBlockInSight(), Map::isBlockOccluded(), Map::isOccluded(), LuaLocalPlayer::l_get_last_pos(), ModApiEnv::l_get_node_boxes(), ModApiEnv::l_get_objects_in_area(), ModApiEnv::l_get_objects_inside_radius(), LuaCamera::l_get_offset(), LuaCamera::l_get_pos(), LuaLocalPlayer::l_get_pos(), ObjectRef::l_get_pos(), LuaLocalPlayer::l_get_velocity(), ObjectRef::l_get_velocity(), Environment::line_of_sight(), LocalPlayer::move(), Game::nodePlacement(), objectpos_over_limit(), LocalPlayer::old_move(), GameGlobalShaderConstantSetter::onSetConstants(), RaycastSort::operator()(), GenericCAO::processMessage(), Game::processPlayerInteraction(), push_collision_move_result(), push_object_properties(), push_pointed_thing(), pushFloatPos(), read_object_properties(), read_server_sound_params(), Clouds::render(), ClientMap::renderMap(), ClientMap::renderMapShadows(), ClientMap::renderPostFx(), NodeBox::reset(), Server::sendAddNode(), Server::SendAddParticleSpawner(), Server::sendMetadataChanged(), Server::sendNodeChangePkt(), Server::sendRemoveNode(), Server::SendSpawnParticle(), WieldMeshSceneNode::setItem(), PlayerSAO::setMaxSpeedOverride(), Hud::setSelectionPos(), ParticleSpawner::spawnParticle(), Client::step(), ClientEnvironment::step(), Clouds::step(), GenericCAO::step(), LuaEntitySAO::step(), Particle::step(), PlayerSAO::step(), ServerEnvironment::step(), TestSAO::testActivate(), TestUtilities::testIsBlockInSight(), TestMap::testMaxMapgenLimit(), TestSAO::testNotSaved(), TestSAO::testStaticSave(), TestSAO::testStaticToFalse(), TestSAO::testStaticToTrue(), ClientMap::touchMapBlocks(), transformNodeBox(), ActiveBlockList::update(), Camera::update(), Clouds::update(), GameUI::update(), DirectionalLight::update_frustum(), Minimap::updateActiveMarkers(), GenericCAO::updateAttachments(), Clouds::updateBox(), ClientMap::updateCamera(), Game::updateClouds(), ClientMap::updateDrawList(), ClientMap::updateDrawListShadow(), Game::updateFrame(), Clouds::updateMesh(), GenericCAO::updateNodePos(), Game::updatePointedThing(), ShadowRenderer::updateSMTextures(), LocalPlayer::updateSneakNode(), Game::updateSound(), MapBlockMesh::updateTransparentBuffers(), ClientMap::updateTransparentMeshBuffers(), Particle::updateVertices(), and Camera::updateViewingRange().

◆ CONNECTION_TIMEOUT

#define CONNECTION_TIMEOUT   30

Referenced by Client::connect().

◆ DTIME_LIMIT

#define DTIME_LIMIT   2.5f

◆ INTERNET_SIMULATOR

#define INTERNET_SIMULATOR   0

◆ INTERNET_SIMULATOR_PACKET_LOSS

#define INTERNET_SIMULATOR_PACKET_LOSS   10

Referenced by UDPSocket::Send().

◆ LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS

#define LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS   0

◆ MAP_BLOCKSIZE

#define MAP_BLOCKSIZE   16

Referenced by MapBlockMesh::MapBlockMesh(), Mapgen::Mapgen(), MapgenV6::MapgenV6(), Map::addNodeAndUpdate(), PlayerSAO::addPos(), Client::addUpdateMeshTaskForNode(), analyze_block(), ABMHandler::apply(), LBMManager::applyLBMs(), RollbackAction::applyRevert(), voxalgo::blit_back_with_light(), MapgenV6::block_is_underground(), ServerMap::blockpos_over_mapgen_limit(), blockpos_over_max_limit(), CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), content_nodemeta_deserialize_legacy(), MapBlock::copyFrom(), MapBlock::copyTo(), NodeMetadataList::deSerialize(), NodeTimerList::deSerialize(), Hud::drawBlockBounds(), voxalgo::fill_with_sunlight(), voxalgo::fill_with_sunlight(), MeshMakeData::fillBlockData(), MeshMakeData::fillBlockDataBegin(), MeshUpdateQueue::fillDataFromMapBlocks(), fillViewConeBlock(), Map::findNodesWithMetadata(), voxalgo::finish_bulk_light_update(), EmergeThread::finishGen(), Map::forEachNodeInArea(), DungeonGen::generate(), MapgenV6::generateCaves(), get_mapgen_edges(), get_solid_sides(), MapEditEvent::getArea(), MapgenV6::getBiome(), ClientMap::getBlocksInViewRange(), MapBlock::getBox(), MapgenV6::getHumidity(), MinimapUpdateThread::getMap(), MinimapMapblock::getMinimapNodes(), RemoteClient::GetNextBlocks(), Map::getNode(), getNodeBlockPos(), getNodeBlockPosWithOffset(), Map::getNodeMetadata(), Map::getNodeTimer(), ServerEnvironment::init(), MMVManip::initialEmerge(), EmergeManager::initMapgens(), voxalgo::is_sunlight_above_block(), isBlockInSight(), Map::isBlockOccluded(), EmergeManager::isBlockUnderground(), ReflowScan::isLiquidFlowableTo(), ClientMap::isMeshOccluded(), MapBlock::isValidPosition(), LuaVoxelManip::l_calc_lighting(), ModApiEnv::l_fix_light(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), LuaVoxelManip::l_set_lighting(), loadGameConfAndInitWorld(), ReflowScan::lookupBlock(), CavesRandomWalk::makeCave(), CavesV6::makeCave(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenSinglenode::makeChunk(), MapgenV5::makeChunk(), MapgenV6::makeChunk(), MapgenV7::makeChunk(), MapgenValleys::makeChunk(), ScriptApiMapgen::on_generated(), voxalgo::propagate_block_sunlight(), Map::removeNodeMetadata(), Map::removeNodeTimer(), ClientMap::renderMap(), ClientMap::renderMapShadows(), voxalgo::repair_block_light(), ReflowScan::scan(), ReflowScan::scanColumn(), Server::SendActiveObjectRemoveAdd(), Server::SendAddParticleSpawner(), Client::sendPlayerPos(), Server::SendSpawnParticle(), NodeMetadataList::serialize(), NodeTimerList::serialize(), set_node_in_block(), MeshMakeData::setCrack(), Map::setNode(), Map::setNodeMetadata(), Map::setNodeTimer(), PlayerSAO::setPos(), ParticleSpawner::step(), voxalgo::step_rel_block_pos(), TestUtilities::testIsBlockInSight(), TestMapBlock::testLoad20(), TestMapBlock::testLoad29(), TestMapBlock::testLoadNonStd(), TestMap::testMaxMapgenLimit(), ClientMap::touchMapBlocks(), ClientMap::updateCamera(), ClientMap::updateDrawList(), MapBlockMesh::updateTransparentBuffers(), workOnBoth(), workOnMetadata(), workOnNodes(), and writePlayerPos().

◆ MAX_MAP_GENERATION_LIMIT

◆ PEER_ID_INEXISTENT

◆ PEER_ID_SERVER

◆ PLAYER_DEFAULT_STEPHEIGHT

#define PLAYER_DEFAULT_STEPHEIGHT   0.6f

Referenced by PlayerSAO::PlayerSAO().

◆ PLAYER_FILE_ALTERNATE_TRIES

#define PLAYER_FILE_ALTERNATE_TRIES   1000

◆ PLAYER_INVENTORY_SIZE

#define PLAYER_INVENTORY_SIZE   (8 * 4)

Referenced by Player::Player().

◆ PLAYER_MAX_BREATH_DEFAULT

#define PLAYER_MAX_BREATH_DEFAULT   10

Referenced by PlayerSAO::PlayerSAO().

◆ PLAYER_MAX_HP_DEFAULT

#define PLAYER_MAX_HP_DEFAULT   20

◆ SCREENSHOT_MAX_SERIAL_TRIES

#define SCREENSHOT_MAX_SERIAL_TRIES   1000

Referenced by Client::makeScreenshot().

◆ TTF_DEFAULT_FONT_SIZE

#define TTF_DEFAULT_FONT_SIZE   (16)

Referenced by set_default_settings().