| |
---|
| | private Gallery(){ |
---|
| | |
---|
| | } |
---|
| | |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | // 作品をすべて返す |
---|
| | |
---|
| | public HashMap<Integer, Animation> getMap(){return animationHashMap;} |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | // 1つの作品の全ての情報を返す. |
---|
| | |
---|
| | public Animation getAnimationInformation( Integer aid){return animationHashMap.get(aid);} |
---|
| | |
---|
| | public int registAnimation(String name, Account owner){ |
---|
| | var newAnimation = new Animation(name, owner); |
---|
| | |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | // 作品を作る |
---|
| | |
---|
| | public int createAnimation(String animationName, Account owner){ |
---|
| | var newAnimation = new Animation(animationName, owner); |
---|
| | var aid = new Random().nextInt(); |
---|
| | newAnimation.setAid(aid); |
---|
| | animationHashMap.put(aid,newAnimation); |
---|
| | newAnimation.setName(animationName); |
---|
| | return aid; |
---|
| | } |
---|
| | |
---|
| | public Animation getAnimationByAid(Integer aid) { |
---|
| | |