diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharactersModel.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharactersModel.java index 735e0bf..68af751 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharactersModel.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/OtherPlayerCharactersModel.java @@ -3,7 +3,12 @@ import net.arnx.jsonic.JSON; import org.ntlab.radishforandroidstudio.cactusClient.connections.CharactersConnection; +import org.ntlab.radishforandroidstudio.cactusClient.types.pojo.PlayerPojo; +import org.ntlab.radishforandroidstudio.cactusClient.types.pojo.PlayersPojo; import org.ntlab.radishforandroidstudio.framework.gameMain.Actor; +import org.ntlab.radishforandroidstudio.framework.model3D.Object3D; +import org.ntlab.radishforandroidstudio.framework.model3D.Position3D; +import org.ntlab.radishforandroidstudio.framework.model3D.Property3D; import org.ntlab.radishforandroidstudio.framework.network.CallBack; import java.util.ArrayList; @@ -20,7 +25,7 @@ private ArrayList otherCharacters = new ArrayList<>(); private CharactersConnection con = null; private int nextConnectRenaimdTime = 0; - private int connectInterval = 100; + private int connectInterval = 1000; public OtherPlayerCharactersModel() { con = new CharactersConnection("a"); @@ -35,7 +40,7 @@ */ @Override public void update(double interval) { - nextConnectRenaimdTime -= connectInterval; + nextConnectRenaimdTime -= interval; if (nextConnectRenaimdTime <= 0) { nextConnectRenaimdTime += connectInterval; con.doAnything(); @@ -45,10 +50,10 @@ @Override public void onResponse(String response) { JSON json = new JSON(); - List m = json.decode(response); - for (Map map : m) { + PlayersPojo m = json.decode(response, PlayersPojo.class); + for (PlayerPojo map : m.getPlayerPojo()) { + ArrayList prop = new ArrayList<>(); // 状態更新 - } } }