summaryrefslogtreecommitdiff
path: root/src/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-10 00:16:37 +0300
commite066ec2e038405621a7de50e4cd735e548eb488d (patch)
tree626e7ddacf867949a5380bfe528a332dffada5a4 /src/maplayer.h
parent6d7af74bab17c03f1604e8351d397695286414ed (diff)
downloadplus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.gz
plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.bz2
plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.xz
plus-e066ec2e038405621a7de50e4cd735e548eb488d.zip
Delete copy constructor in some classes.
Diffstat (limited to 'src/maplayer.h')
-rw-r--r--src/maplayer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/maplayer.h b/src/maplayer.h
index 59a612cbb..75dba70b9 100644
--- a/src/maplayer.h
+++ b/src/maplayer.h
@@ -46,6 +46,8 @@ class MapRowVertexes final
images.reserve(30);
}
+ A_DELETE_COPY(MapRowVertexes);
+
~MapRowVertexes();
MepRowImages images;
@@ -66,6 +68,11 @@ class MapObject final
class MapObjectList final
{
public:
+ MapObjectList()
+ { }
+
+ A_DELETE_COPY(MapObjectList);
+
std::vector<MapObject> objects;
};
@@ -86,6 +93,8 @@ class MapLayer final: public ConfigListener
MapLayer(const int x, const int y, const int width, const int height,
const bool isFringeLayer);
+ A_DELETE_COPY(MapLayer);
+
/**
* Destructor.
*/
@@ -189,6 +198,8 @@ class SpecialLayer final
SpecialLayer(const int width, const int height,
const bool drawSprites = false);
+ A_DELETE_COPY(SpecialLayer);
+
~SpecialLayer();
void draw(Graphics *const graphics, int startX, int startY,
@@ -248,6 +259,8 @@ class MapItem final
MapItem(const int type, std::string comment, const int x, const int y);
+ A_DELETE_COPY(MapItem);
+
~MapItem();
int getType() const
@@ -292,6 +305,8 @@ class ObjectsLayer final
public:
ObjectsLayer(const unsigned width, const unsigned height);
+ A_DELETE_COPY(ObjectsLayer);
+
~ObjectsLayer();
void addObject(std::string name, const int type,