载入中...
搜索中...
未找到
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 <random>
#include <string>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 
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).
 
uint32_t eve::procgen::randomSeedValue ()
 Produce a fresh seed suitable for regenerating a level (never 0).
 

变量说明

◆ h

int h = 0

在文件 RoguelikeGenerator.cpp56 行定义.

◆ w

int w = 0

在文件 RoguelikeGenerator.cpp55 行定义.

◆ x

int x = 0

在文件 RoguelikeGenerator.cpp53 行定义.

◆ y

int y = 0

在文件 RoguelikeGenerator.cpp54 行定义.