Advertisement
Guest User

Untitled

a guest
Nov 11th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.24 KB | None | 0 0
  1. package com.axel.game.node.entity.player.manager;
  2.  
  3. import com.axel.game.content.social.friends.FriendsList;
  4. import com.axel.game.node.entity.player.Player;
  5.  
  6. /**
  7.  * @author _Jordan <citellumrsps@gmail.com>
  8.  */
  9. public class SocialManager {
  10.  
  11.     /**
  12.      * @author _Jordan <citellumrsps@gmail.com>
  13.      */
  14.     public enum OnlineStatus {
  15.         EVERYBODY, FRIENDS, NOBODY;
  16.     }
  17.  
  18.     /**
  19.      * Represents the player to use.
  20.      */
  21.     private final Player player;
  22.  
  23.     /**
  24.      * Represents the online status of the player.
  25.      */
  26.     private final OnlineStatus onlineStatus = OnlineStatus.EVERYBODY;
  27.  
  28.     /**
  29.      * Represents the friends list.
  30.      */
  31.     private final FriendsList friendsList = new FriendsList(this);
  32.  
  33.     /**
  34.      * Constructs a new {@code SocialManager} object.
  35.      *
  36.      * @param player
  37.      */
  38.     public SocialManager(Player player) {
  39.         this.player = player;
  40.     }
  41.  
  42.     /**
  43.      * Gets the player.
  44.      *
  45.      * @return the player
  46.      */
  47.     public Player getPlayer() {
  48.         return player;
  49.     }
  50.  
  51.     /**
  52.      * Gets the onlineStatus.
  53.      *
  54.      * @return the onlineStatus
  55.      */
  56.     public OnlineStatus getOnlineStatus() {
  57.         return onlineStatus;
  58.     }
  59.  
  60.     /**
  61.      * Gets the friendsList.
  62.      *
  63.      * @return the friendsList
  64.      */
  65.     public FriendsList getFriendsList() {
  66.         return friendsList;
  67.     }
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement