Aggiunta classifica match + globale. Versione funzionante terminata

This commit is contained in:
Lorenzo Iovino 2017-06-29 15:09:55 +02:00
parent f7c9d0ff99
commit 429eb1cb02
40 changed files with 2152 additions and 1108 deletions

View file

@ -23,6 +23,9 @@ public class Config {
public static String NotificationServerName ="notification";
public static int timeoutGame = 15;
public static String getNotificationServerURI(){
return "rmi://".concat(NotificationServerURI).concat(":").concat(NotificationServerPort.toString());
}

View file

@ -1,17 +0,0 @@
package models;
/**
* Created by loke on 18/06/2017.
*/
public class Account {
public String userName;
public String password;
public Account(String userName, String password){
this.userName = userName;
this.password = password;
}
}

View file

@ -4,12 +4,19 @@ package models;
* Created by loke on 18/06/2017.
*/
public class User {
public String userName;
public User(String userName){
public String userName;
public String password;
public Integer score = 0;
public User(String userName, String password){
this.userName = userName;
this.password = password;
}
public void addScore(Integer score){
this.score += score;
}
}