Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
ITemperatureWorldBoundable.hpp
Go to the documentation of this file.
1 //
2 // Created by Oleg Morozenkov on 31.05.17.
3 //
4 
5 #ifndef RECAST_IBOUNDTEMPERATUREWORLD_H
6 #define RECAST_IBOUNDTEMPERATUREWORLD_H
7 
8 
9 #include <functional>
14 #include "ITemperatureWorld.hpp"
16 
22 public:
23  using ForeachCellFn = std::function<void(Coord, Coord, Coord)>;
24 
30  virtual void foreach(ForeachCellFn func) const = 0;
31 
38  virtual void foreachCellOnEdge(Edge edge, ForeachCellFn func) const = 0;
39 
43  virtual Parallelepiped bounds() const noexcept = 0;
44 };
45 
52 template<typename T>
53 class ITemperatureWorldBoundable : public virtual T, public virtual ITemperatureWorldBoundableMixin {
54 };
55 
56 
57 #endif //RECAST_IBOUNDTEMPERATUREWORLD_H
Edge
Definition: Edge.hpp:13
virtual void foreachCellOnEdge(Edge edge, ForeachCellFn func) const =0
Definition: Parallelepiped.hpp:17
virtual Parallelepiped bounds() const noexcept=0
Definition: ITemperatureWorldBoundable.hpp:53
std::function< void(Coord, Coord, Coord)> ForeachCellFn
Definition: ITemperatureWorldBoundable.hpp:23
Definition: ITemperatureWorldBoundable.hpp:21