载入中...
搜索中...
未找到
RoguelikeGenerator.cpp 文件参考
#include "procgen/algorithms/RoguelikeGenerator.h"
#include "procgen/GeneratorRegistry.h"
#include "procgen/Grid2D.h"
#include "procgen/Params.h"
#include "procgen/Semantic.h"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <random>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

void eve::procgen::registerRoguelikeGenerator (GeneratorRegistry &registry)
 Register the "level.roguelike" algorithm (idempotent).
 
bool eve::procgen::autotileGridInPlace (Grid2D &grid)
 Post-process any generated Grid2D: fill each wall cell's detail with an 8-bit neighbour mask describing which adjacent cells are walkable. Useful to add direction-aware wall tiles to levels from other generators. Returns false if the grid has no wall cells (still clears detail).
 
eve::Result< void > eve::procgen::autotileOccupiedGridInPlace (Grid2D &grid)
 Write an eight-neighbour occupancy mask into every non-empty cell's detail value.
 
uint32_t eve::procgen::randomSeedValue ()
 Produce a fresh seed suitable for regenerating a level (never 0).
 

变量说明

◆ h

int h = 0

在文件 RoguelikeGenerator.cpp 第 59 行定义.

◆ w

int w = 0

在文件 RoguelikeGenerator.cpp 第 58 行定义.

◆ x

int x = 0

在文件 RoguelikeGenerator.cpp 第 56 行定义.

被这些函数引用 eve::procgen::autotileOccupiedGridInPlace().

◆ y

int y = 0

在文件 RoguelikeGenerator.cpp 第 57 行定义.

被这些函数引用 eve::procgen::autotileOccupiedGridInPlace().