aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/data/OffsetPointSet.java
blob: c33f7af81aadb06850fe5e8d46fbc56e9b0b5144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package kr.syeyoung.dungeonsguide.dungeon.data;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class OffsetPointSet implements Cloneable{
    private List<OffsetPoint> offsetPointList = new ArrayList<OffsetPoint>();

    @Override
    public Object clone() throws CloneNotSupportedException {
        OffsetPointSet ops = new OffsetPointSet();
        for (OffsetPoint offsetPoint : offsetPointList) {
            ops.offsetPointList.add((OffsetPoint) offsetPoint.clone());
        }
        return ops;
    }
}