diff options
Diffstat (limited to 'src/resources/map')
-rw-r--r-- | src/resources/map/location.h | 2 | ||||
-rw-r--r-- | src/resources/map/mapitem.cpp | 8 | ||||
-rw-r--r-- | src/resources/map/maplayer.cpp | 6 | ||||
-rw-r--r-- | src/resources/map/tileanimation.cpp | 2 | ||||
-rw-r--r-- | src/resources/map/tileset.h | 8 |
5 files changed, 16 insertions, 10 deletions
diff --git a/src/resources/map/location.h b/src/resources/map/location.h index 7c1995dba..f2c9af323 100644 --- a/src/resources/map/location.h +++ b/src/resources/map/location.h @@ -35,7 +35,7 @@ struct Location final /** * Constructor. */ - Location(const int px, const int py, MetaTile *const ptile): + Location(const int px, const int py, MetaTile *const ptile) : x(px), y(py), tile(ptile) {} diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp index e035d88b3..bb3b0766c 100644 --- a/src/resources/map/mapitem.cpp +++ b/src/resources/map/mapitem.cpp @@ -33,7 +33,7 @@ #include "debug.h" -MapItem::MapItem(): +MapItem::MapItem() : mImage(nullptr), mComment(), mName(), @@ -44,7 +44,7 @@ MapItem::MapItem(): setType(MapItemType::EMPTY); } -MapItem::MapItem(const int type): +MapItem::MapItem(const int type) : mImage(nullptr), mComment(), mName(), @@ -55,7 +55,7 @@ MapItem::MapItem(const int type): setType(type); } -MapItem::MapItem(const int type, std::string comment): +MapItem::MapItem(const int type, std::string comment) : mImage(nullptr), mComment(comment), mName(), @@ -67,7 +67,7 @@ MapItem::MapItem(const int type, std::string comment): } MapItem::MapItem(const int type, std::string comment, - const int x, const int y): + const int x, const int y) : mImage(nullptr), mComment(comment), mName(), diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index a5f2f056d..51e076e81 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -45,8 +45,10 @@ #include "debug.h" -MapLayer::MapLayer(const int x, const int y, const int width, const int height, - const bool fringeLayer, const int mask): +MapLayer::MapLayer(const int x, const int y, + const int width, const int height, + const bool fringeLayer, + const int mask) : mX(x), mY(y), mWidth(width), diff --git a/src/resources/map/tileanimation.cpp b/src/resources/map/tileanimation.cpp index 6dfe6f0be..8378a0f4e 100644 --- a/src/resources/map/tileanimation.cpp +++ b/src/resources/map/tileanimation.cpp @@ -30,7 +30,7 @@ #include "debug.h" -TileAnimation::TileAnimation(Animation *const ani): +TileAnimation::TileAnimation(Animation *const ani) : mAffected(), mAnimation(new SimpleAnimation(ani)), mLastImage(nullptr) diff --git a/src/resources/map/tileset.h b/src/resources/map/tileset.h index 312896c62..fa1291ba2 100644 --- a/src/resources/map/tileset.h +++ b/src/resources/map/tileset.h @@ -36,8 +36,12 @@ class Tileset final : public ImageSet /** * Constructor. */ - Tileset(Image *const img, const int w, const int h, const int firstGid, - const int margin, const int spacing): + Tileset(Image *const img, + const int w, + const int h, + const int firstGid, + const int margin, + const int spacing) : ImageSet(img, w, h, margin, spacing), mFirstGid(firstGid), mProperties() |