Moved all the data packets data to the top class, renamed everything.

Put the dispatcher in the main code and started adding Messages.
This commit is contained in:
ProfMobius committed 2014-03-27 04:11:51 +01:00
1 parent 1ad1413356
commit 96db5c338f
27 files changed
+227 -145

No files matched your search

+3 -1
View File
@@ -52,7 +52,7 @@ public class DataCache {
private ArrayList<StatsEntity> timingEntities = new ArrayList<StatsEntity>();
private ArrayList<StatsTileEntity> timingTileEnts = new ArrayList<StatsTileEntity>();
private ArrayList<StatsChunk> timingChunks = new ArrayList<StatsChunk>();
private ArrayList<StatsPlayer> listPlayers = new ArrayList<StatsPlayer>();
//private ArrayList<StatsPlayer> listPlayers = new ArrayList<StatsPlayer>();
private long clockScrew = 0;
@@ -197,6 +197,7 @@ public class DataCache {
this.dataUpdated(table, model, row);
}
/*
public ArrayList<StatsPlayer> getListPlayers(){
return this.listPlayers;
}
@@ -216,6 +217,7 @@ public class DataCache {
this.dataUpdated(table, model, row);
}
*/
private <U> int updateData(JTable table, DefaultTableModel model, ArrayList<U> dataarray, ArrayList<? extends ISerializable> newdata, Class<U> datatype){
int row = table.getSelectedRow();