Matei
bd53b14f58
- Created binaries/data/mods/official/maps/random folder to store maps and also moved rmlibrary.js to maps (though perhaps it should be somewhere in system?). - RM generator now uses "logical terrains" that can have units attached to them in addition to textures, for things like forests. - Added basic clump placer, avoid constraints, layered painter, and random terrains (each tile is chosen between several options). - Misc. infrastructure changes. This was SVN commit r2378.
20 lines
414 B
C++
20 lines
414 B
C++
#ifndef __CLUMPPLACER_H__
|
|
#define __CLUMPPLACER_H__
|
|
|
|
#include "centeredplacer.h"
|
|
#include "map.h"
|
|
|
|
class ClumpPlacer : public CenteredPlacer
|
|
{
|
|
private:
|
|
float size;
|
|
float coherence;
|
|
float smoothness;
|
|
public:
|
|
virtual bool place(Map* m, Constraint* constr, std::vector<Point>& ret, int x, int y);
|
|
|
|
ClumpPlacer(float size, float coherence, float smoothness);
|
|
virtual ~ClumpPlacer();
|
|
};
|
|
|
|
#endif |