Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.axel.game.node.entity.player.manager;
- import com.axel.game.content.social.friends.FriendsList;
- import com.axel.game.node.entity.player.Player;
- /**
- * @author _Jordan <citellumrsps@gmail.com>
- */
- public class SocialManager {
- /**
- * @author _Jordan <citellumrsps@gmail.com>
- */
- public enum OnlineStatus {
- EVERYBODY, FRIENDS, NOBODY;
- }
- /**
- * Represents the player to use.
- */
- private final Player player;
- /**
- * Represents the online status of the player.
- */
- private final OnlineStatus onlineStatus = OnlineStatus.EVERYBODY;
- /**
- * Represents the friends list.
- */
- private final FriendsList friendsList = new FriendsList(this);
- /**
- * Constructs a new {@code SocialManager} object.
- *
- * @param player
- */
- public SocialManager(Player player) {
- this.player = player;
- }
- /**
- * Gets the player.
- *
- * @return the player
- */
- public Player getPlayer() {
- return player;
- }
- /**
- * Gets the onlineStatus.
- *
- * @return the onlineStatus
- */
- public OnlineStatus getOnlineStatus() {
- return onlineStatus;
- }
- /**
- * Gets the friendsList.
- *
- * @return the friendsList
- */
- public FriendsList getFriendsList() {
- return friendsList;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement