diff options
Diffstat (limited to 'Room.h')
-rw-r--r-- | Room.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -28,6 +28,13 @@ class Room : public Polygon, public LevelObject { virtual const char* getType() const { return "Room"; } + + virtual void move(float x, float y) { + for(iterator v = begin(); v != end(); v++) { + v->setX(v->getX()+x); + v->setY(v->getY()+y); + } + } }; #endif /*ROOM_H_*/ |