diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModels.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModels.java new file mode 100644 index 0000000..b54b050 --- /dev/null +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModels.java @@ -0,0 +1,29 @@ +package org.ntlab.radishforandroidstudio.cactusClient.models; + +import java.util.ArrayList; + +/** + * モデルを管理する + * + * @author s.iwatani + */ +public class CactusModels implements CactusModel { + private ArrayList models = new ArrayList<>(); + + public CactusModels() { + models.add(new OtherPlayerCharactersModel()); + } + + /** + * モデルの状態を更新する + * + * @author s.iwatani + * @param interval 前回の更新からの時間差 + */ + @Override + public void update(double interval) { + for (CactusModel model: models) { + model.update(interval); + } + } +}