Advertisement
Guest User

Untitled

a guest
Jun 5th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.56 KB | None | 0 0
  1. package exipe.server.player;
  2.  
  3. import exipe.server.player.appearance.Appearance;
  4. import exipe.server.player.appearance.Gender;
  5. import exipe.server.player.walking.Direction;
  6.  
  7. public final class Save {
  8.  
  9.     private final Bank bank = new Bank();
  10.     private final Inventory inventory = new Inventory();
  11.    
  12.     private final String username;
  13.     private final String password;
  14.    
  15.     private Appearance appearance = new Appearance(Gender.MALE);
  16.    
  17.     private Direction face = Direction.WEST;
  18.    
  19.     private int staffRights,
  20.             posX = 2964,
  21.             posY = 3378,
  22.             height;
  23.    
  24.     public Save(String username, String password) {
  25.         this.username = username;
  26.         this.password = password;
  27.     }
  28.    
  29.     public Bank bank() {
  30.         return bank;
  31.     }
  32.    
  33.     public Inventory inventory() {
  34.         return inventory;
  35.     }
  36.    
  37.     public String username() {
  38.         return username;
  39.     }
  40.    
  41.     public String password() {
  42.         return password;
  43.     }
  44.    
  45.     public void setAppearance(Appearance app) {
  46.         if(appearance == app) return;
  47.         appearance = app;
  48.     }
  49.    
  50.     public Appearance appearance() {
  51.         return appearance;
  52.     }
  53.    
  54.     public void setFace(Direction face) {
  55.         if(this.face == face) return;
  56.         this.face = face;
  57.     }
  58.    
  59.     public Direction face() {
  60.         return face;
  61.     }
  62.    
  63.     public int staffRights() {
  64.         return staffRights;
  65.     }
  66.    
  67.     public void setX(int newX) {
  68.         posX = newX;
  69.     }
  70.    
  71.     public void setY(int newY) {
  72.         posY = newY;
  73.     }
  74.    
  75.     public void setHeight(int height) {
  76.         this.height = height;
  77.     }
  78.    
  79.     public int posX() {
  80.         return posX;
  81.     }
  82.    
  83.     public int posY() {
  84.         return posY;
  85.     }
  86.    
  87.     public int height() {
  88.         return height;
  89.     }
  90.    
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement