forked from 0ad/0ad
31 lines
692 B
C
31 lines
692 B
C
|
#ifndef __SIMPLEGROUP_H__
|
||
|
#define __SIMPLEGROUP_H__
|
||
|
|
||
|
#include "objectgroupplacer.h"
|
||
|
|
||
|
class SimpleGroup : public ObjectGroupPlacer
|
||
|
{
|
||
|
public:
|
||
|
class Element {
|
||
|
public:
|
||
|
std::string type;
|
||
|
int count;
|
||
|
float distance;
|
||
|
|
||
|
Element::Element();
|
||
|
Element::Element(const std::string& type, int count, float distance);
|
||
|
Element::~Element();
|
||
|
|
||
|
bool place(int cx, int cy, class Map* m, Constraint* constr, std::vector<Object*>& ret);
|
||
|
};
|
||
|
|
||
|
std::vector<Element*> elements;
|
||
|
int x, y;
|
||
|
|
||
|
virtual bool place(class Map* m, Constraint* constr, std::vector<Object*>& ret);
|
||
|
|
||
|
SimpleGroup(std::vector<Element*>& elements, int x, int y);
|
||
|
virtual ~SimpleGroup(void);
|
||
|
};
|
||
|
|
||
|
#endif
|