diff --git a/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/OnlineBattleGame2/Account.java b/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/OnlineBattleGame2/Account.java index e5c60de..f7594e2 100644 --- a/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/OnlineBattleGame2/Account.java +++ b/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/OnlineBattleGame2/Account.java @@ -4,10 +4,10 @@ private int point; private String name; public Map getValue() { - Map temp_nil5 = new HashMap<>(); - temp_nil5.put("point",this.getPoint()); - temp_nil5.put("name",this.getName()); - return temp_nil5; + Map temp_nil4 = new HashMap<>(); + temp_nil4.put("name",this.getName()); + temp_nil4.put("point",this.getPoint()); + return temp_nil4; } public int getPoint() { return point; @@ -16,12 +16,12 @@ return this.name; } public void updatePointFromBattle(String self, String rid, int mno, boolean battle, String id) { - int temp_if0; - if (hasWon) { - temp_if0 = (this.point+1); + int temp_if1; + if (battle) { + temp_if1 = (this.point+1); } else { - temp_if0 = this.point; - }this.point = temp_if0; + temp_if1 = this.point; + }this.point = temp_if1; } public void changeName(String aid, String name) { this.name = name;