arbitraryneighborhoodrule.hpp 789 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
\file arbitraryneighborhoodrule.hpp
\date 11/05/2021
\author Yann Boucher
\version 1
\brief ArbitraryNeighborhoodRule

Représente un voisinage arbitraire, défini par l'utilisateur.
        **/

#ifndef ARBITRARYNEIGHBORHOODRULE_HPP
#define ARBITRARYNEIGHBORHOODRULE_HPP

#include "neighborhoodrule.hpp"
#include "property.hpp"

17
class ArbitraryNeighborhoodRule : public NeighborhoodRule, public HasUserProperties
18
19
{
public:
20
    Neighborhood getNeighborhood(const Grid& grid, Coord pos) const override;
21

22
    std::vector<NeighborhoodFormat> getFormats() const override;
23
24
25
26

public:
    DEFINE_CONFIGURABLE_DYNLIST (CoordinateProperty, neighbors, "neighbors", ());
};
27
REGISTER_FACTORY_ENTRY(NeighborhoodRule, ArbitraryNeighborhoodRule, "Arbitrary");
28
29

#endif // ARBITRARYNEIGHBORHOODRULE_HPP