Skip to content
Snippets Groups Projects
Commit 886e4093 authored by Leonard's avatar Leonard
Browse files

added missing variable to user

parent cbf0a227
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -115,22 +115,4 @@ public class Ship implements Serializable {
@DatabaseField(foreign = true, columnName = "inventory")
private List<Weapon> inventory;
/**
* Take damage
*/
private void takeDamage(int amount) {
}
/**
* Add hp
*/
private void heal(int hp) {
}
/**
* Add shields
*/
private void applyShields(int shields) {
}
}
......@@ -25,4 +25,9 @@ public class User implements Serializable {
*/
@DatabaseField(columnName = "userShip", foreign = true)
private Ship userShip;
/** Whether or not the user is logged in */
@NonNull
@DatabaseField(columnName = "loggedIn")
private boolean loggedIn = false;
}
......@@ -54,4 +54,18 @@ public class UserService {
}
/**
* Save game
*
* @param username - the username of the user
*/
public void saveGame(String username) {
}
/** Login
* @param username - the username of the user
* @return true - if the login was successful else return false */
public boolean login(String username){
return false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment