Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
32:75b6394ced14 | 33:112fc4af772d |
---|---|
172 /** Get the cellgrid rotation | 172 /** Get the cellgrid rotation |
173 * @return rotation The rotation of the cellgrid | 173 * @return rotation The rotation of the cellgrid |
174 */ | 174 */ |
175 const double getRotation() const { return m_rotation; } | 175 const double getRotation() const { return m_rotation; } |
176 | 176 |
177 /** Returns clone of this cellgrid | |
178 */ | |
179 virtual CellGrid* clone() = 0; | |
180 | |
177 protected: | 181 protected: |
178 void updateMatrices(); | 182 void updateMatrices(); |
179 bool ptInTriangle(const ExactModelCoordinate& pt, const ExactModelCoordinate& pt1, const ExactModelCoordinate& pt2, const ExactModelCoordinate& pt3); | 183 bool ptInTriangle(const ExactModelCoordinate& pt, const ExactModelCoordinate& pt1, const ExactModelCoordinate& pt2, const ExactModelCoordinate& pt3); |
180 | 184 |
181 DoubleMatrix m_matrix; | 185 DoubleMatrix m_matrix; |