@@ -91,12 +91,12 @@ class TILEDSHARED_EXPORT Map : public Object
91
91
};
92
92
93
93
/* *
94
- * Whether the tiles are staggered by rows or columns . Only used by the
95
- * isometric staggered and hexagonal map renderers.
94
+ * Which axis is staggered. Only used by the isometric staggered and
95
+ * hexagonal map renderers.
96
96
*/
97
- enum StaggerDirection {
98
- StaggerColumns ,
99
- StaggerRows
97
+ enum StaggerAxis {
98
+ StaggerX ,
99
+ StaggerY
100
100
};
101
101
102
102
/* *
@@ -149,22 +149,22 @@ class TILEDSHARED_EXPORT Map : public Object
149
149
{ mRenderOrder = renderOrder; }
150
150
151
151
/* *
152
- * Returns the width of this map.
152
+ * Returns the width of this map in tiles .
153
153
*/
154
154
int width () const { return mWidth ; }
155
155
156
156
/* *
157
- * Sets the width of this map.
157
+ * Sets the width of this map in tiles .
158
158
*/
159
159
void setWidth (int width) { mWidth = width; }
160
160
161
161
/* *
162
- * Returns the height of this map.
162
+ * Returns the height of this map in tiles .
163
163
*/
164
164
int height () const { return mHeight ; }
165
165
166
166
/* *
167
- * Sets the height of this map.
167
+ * Sets the height of this map in tiles .
168
168
*/
169
169
void setHeight (int height) { mHeight = height; }
170
170
@@ -201,8 +201,8 @@ class TILEDSHARED_EXPORT Map : public Object
201
201
int hexSideLength () const ;
202
202
void setHexSideLength (int hexSideLength);
203
203
204
- StaggerDirection staggerDirection () const ;
205
- void setStaggerDirection (StaggerDirection staggerDirection );
204
+ StaggerAxis staggerAxis () const ;
205
+ void setStaggerAxis (StaggerAxis staggerAxis );
206
206
207
207
StaggerIndex staggerIndex () const ;
208
208
void setStaggerIndex (StaggerIndex staggerIndex);
@@ -379,7 +379,7 @@ class TILEDSHARED_EXPORT Map : public Object
379
379
int mTileWidth ;
380
380
int mTileHeight ;
381
381
int mHexSideLength ;
382
- StaggerDirection mStaggerDirection ;
382
+ StaggerAxis mStaggerAxis ;
383
383
StaggerIndex mStaggerIndex ;
384
384
QColor mBackgroundColor ;
385
385
QMargins mDrawMargins ;
@@ -399,14 +399,14 @@ inline void Map::setHexSideLength(int hexSideLength)
399
399
mHexSideLength = hexSideLength;
400
400
}
401
401
402
- inline Map::StaggerDirection Map::staggerDirection () const
402
+ inline Map::StaggerAxis Map::staggerAxis () const
403
403
{
404
- return mStaggerDirection ;
404
+ return mStaggerAxis ;
405
405
}
406
406
407
- inline void Map::setStaggerDirection (StaggerDirection staggerDirection )
407
+ inline void Map::setStaggerAxis (StaggerAxis staggerAxis )
408
408
{
409
- mStaggerDirection = staggerDirection ;
409
+ mStaggerAxis = staggerAxis ;
410
410
}
411
411
412
412
inline Map::StaggerIndex Map::staggerIndex () const
@@ -420,8 +420,8 @@ inline void Map::setStaggerIndex(StaggerIndex staggerIndex)
420
420
}
421
421
422
422
423
- TILEDSHARED_EXPORT QString staggerDirectionToString (Map::StaggerDirection staggerDirection );
424
- TILEDSHARED_EXPORT Map::StaggerDirection staggerDirectionFromString (const QString &);
423
+ TILEDSHARED_EXPORT QString staggerAxisToString (Map::StaggerAxis );
424
+ TILEDSHARED_EXPORT Map::StaggerAxis staggerAxisFromString (const QString &);
425
425
426
426
TILEDSHARED_EXPORT QString staggerIndexToString (Map::StaggerIndex staggerIndex);
427
427
TILEDSHARED_EXPORT Map::StaggerIndex staggerIndexFromString (const QString &);
0 commit comments