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

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class OffsetPointSet implements Cloneable, Serializable {
    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;
    }
}