diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModel.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModel.java new file mode 100644 index 0000000..ac6e6eb --- /dev/null +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/CactusModel.java @@ -0,0 +1,16 @@ +package org.ntlab.radishforandroidstudio.cactusClient.models; + +/** + * モデルの基底インターフェース + * + * @author s.iwatani + */ +public interface CactusModel { + /** + * モデルの状態を更新する + * + * @author s.iwatani + * @param interval 前回の更新からの時間差 + */ + void update(double interval); +} diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharacterModel.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharacterModel.java new file mode 100644 index 0000000..7ebb4d0 --- /dev/null +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharacterModel.java @@ -0,0 +1,19 @@ +package org.ntlab.radishforandroidstudio.cactusClient.models; + +/** + * 自キャラ以外の操作キャラを管理するモデル + * + * @author s.iwatani + */ +public class OtherPlayerCharacterModel implements CactusModel { + /** + * モデルの状態を更新する + * + * @author s.iwatani + * @param interval 前回の更新からの時間差 + */ + @Override + public void update(double interval) { + // TODO: APIを叩いてキャラクタの状態を取得し、いろいろ処理 + } +}