mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
- 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.
29 lines
No EOL
725 B
C++
29 lines
No EOL
725 B
C++
#ifndef __SIMPLEPLACERS_H__
|
|
#define __SIMPLEPLACERS_H__
|
|
|
|
#include "areaplacer.h"
|
|
#include "centeredplacer.h"
|
|
#include "map.h"
|
|
#include "constraint.h"
|
|
|
|
class ExactPlacer: public AreaPlacer {
|
|
private:
|
|
CenteredPlacer* centeredPlacer;
|
|
int x, y;
|
|
public:
|
|
ExactPlacer(CenteredPlacer* centeredPlacer, int x, int y);
|
|
virtual bool place(Map* m, Constraint* constr, std::vector<Point>& ret);
|
|
~ExactPlacer();
|
|
};
|
|
|
|
class MultiPlacer: public AreaPlacer {
|
|
private:
|
|
CenteredPlacer* centeredPlacer;
|
|
int numToPlace, maxFail;
|
|
public:
|
|
MultiPlacer(CenteredPlacer* centeredPlacer, int numToPlace, int maxFail);
|
|
virtual bool place(Map* m, Constraint* constr, std::vector<Point>& ret);
|
|
~MultiPlacer();
|
|
};
|
|
|
|
#endif |