Mercurial > fife-parpg
diff engine/core/model/metamodel/grids/cellgrid.h @ 33:112fc4af772d
moved grid ownership to model in similar way as with pathers
author | jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 11 Jul 2008 15:42:54 +0000 |
parents | 4a0efb7baf70 |
children | 90005975cdbb |
line wrap: on
line diff
--- a/engine/core/model/metamodel/grids/cellgrid.h Fri Jul 11 15:37:16 2008 +0000 +++ b/engine/core/model/metamodel/grids/cellgrid.h Fri Jul 11 15:42:54 2008 +0000 @@ -174,6 +174,10 @@ */ const double getRotation() const { return m_rotation; } + /** Returns clone of this cellgrid + */ + virtual CellGrid* clone() = 0; + protected: void updateMatrices(); bool ptInTriangle(const ExactModelCoordinate& pt, const ExactModelCoordinate& pt1, const ExactModelCoordinate& pt2, const ExactModelCoordinate& pt3);