Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sonc.game;
- public class Player {
- String user, pass, userCode;
- Player(java.lang.String user, java.lang.String pass){
- this.user = user;
- this.pass = pass;
- }
- public boolean authenticate(String oldPassword) {
- if(oldPassword.equals(pass))
- return true;
- return false;
- }
- public void setPassword(String newPassword) {
- this.pass=newPassword;
- }
- public String getCode() {
- return userCode;
- }
- public void setCode(String code) {
- userCode = code;
- }
- public void checkCode() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement