MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / cRandomMap

Method cRandomMap

Source/Map/Random.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "Utils/diamondsquare.hpp"
30
31cRandomMap::cRandomMap(const sMapParams& pParams) : cOriginalMap() {
32 mParams = pParams;
33 mPathSearchUnitType = 0;
34 mPathTilesNotTouchable = 0;
35 mData = std::make_shared<std::vector<uint8_t>>();
36 ClearTiles(0);
37
38 saveHeader();
39}
40
41int32 cRandomMap::getSpriteTypeCount(size_t pSpriteType) {
42 int32 count = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected