package com.ntlab.irisserver.entities; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Game { private Map<Integer, Drawing> drawingList = new HashMap<>(); private Map<Integer, String> keywordList = new HashMap<>(); public Drawing getDrawing(int dno) { Drawing d = drawingList.get(dno); return d; } public Drawing putDrawing(int dno, Drawing drawing) { Drawing d = drawingList.put(dno, drawing); return d; } public List<String> getKeywords() { List<String> keywords = new ArrayList<>(keywordList.values()); return keywords; } public String getKeyword(int dno) { String keyword = keywordList.get(dno); return keyword; } }