|
RuneHive-Game
|
The repository containing all the clans and their corresponding data. More...
Static Public Member Functions | |
| static void | addChannel (ClanChannel channel) |
| Adds the channel. | |
| static ClanChannel | getChannel (String channel) |
| Returns the channel. | |
| static Optional< Set< ClanChannel > > | getTopChanels (ClanType type) |
| static Optional< Set< ClanChannel > > | getTopChanels (ClanViewer.Filter filter) |
| static void | loadChannels () |
| Loads all clans and puts them into the map. | |
| static boolean | nameExist (String name) |
| static void | removeChannel (ClanChannel channel) |
| Handles removing a channel from the clan lists. | |
| static void | saveAllActiveClans () |
| static void | setActive (ClanChannel channel) |
| static void | setInactive (ClanChannel channel) |
| static boolean | tagExist (String tag) |
Static Public Attributes | |
| static Set< ClanChannel > | ACTIVE_CHANNELS = new HashSet<>() |
| Set of all active clan chat channels. | |
| static Set< String > | ACTIVE_NAMES = new HashSet<>() |
| Set of all active clan chat names. | |
| static Set< String > | ACTIVE_TAGS = new HashSet<>() |
| Set of all active clan chat tags. | |
| static Set< ClanChannel > | ALLTIME = new TreeSet<>() |
| Set of all active clan chat names. | |
Static Private Member Functions | |
| static void | saveClan (ClanChannel channel) |
Static Private Attributes | |
| static Map< String, ClanChannel > | CHANNELS = new HashMap<>() |
| Map of all clan chat channels. | |
| static Set< ClanChannel > | TOP_IRON_MAN = new TreeSet<>() |
| Set of all active clan chat names. | |
| static Set< ClanChannel > | TOP_PVM = new TreeSet<>() |
| Set of all active clan chat names. | |
| static Set< ClanChannel > | TOP_PVP = new TreeSet<>() |
| Set of all active clan chat names. | |
| static Set< ClanChannel > | TOP_SKILLING = new TreeSet<>() |
| Set of all active clan chat names. | |
The repository containing all the clans and their corresponding data.
Definition at line 18 of file ClanRepository.java.
|
static |
Adds the channel.
Definition at line 53 of file ClanRepository.java.
References CHANNELS.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.create(), and com.runehive.content.clanchannel.channel.ClanChannel.load().
|
static |
Returns the channel.
Definition at line 48 of file ClanRepository.java.
References CHANNELS.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.activateTask(), com.runehive.content.clanchannel.channel.ClanChannelHandler.connect(), com.runehive.content.clanchannel.channel.ClanChannel.create(), and com.runehive.content.clanchannel.channel.ClanChannel.setRank().
|
static |
Definition at line 138 of file ClanRepository.java.
References com.runehive.content.clanchannel.ClanType.IRON_MAN, com.runehive.content.clanchannel.ClanType.PVM, com.runehive.content.clanchannel.ClanType.PVP, com.runehive.content.clanchannel.ClanType.SKILLING, TOP_IRON_MAN, TOP_PVM, TOP_PVP, and TOP_SKILLING.
Referenced by com.runehive.content.clanchannel.content.ClanViewer.drawClanList().
|
static |
Definition at line 154 of file ClanRepository.java.
References com.runehive.content.clanchannel.content.ClanViewer.Filter.ALL_TIME, ALLTIME, TOP_IRON_MAN, com.runehive.content.clanchannel.content.ClanViewer.Filter.TOP_IRON_MAN, TOP_PVM, com.runehive.content.clanchannel.content.ClanViewer.Filter.TOP_PVM, TOP_PVP, com.runehive.content.clanchannel.content.ClanViewer.Filter.TOP_PVP, TOP_SKILLING, and com.runehive.content.clanchannel.content.ClanViewer.Filter.TOP_SKILLING.
|
static |
Loads all clans and puts them into the map.
Definition at line 112 of file ClanRepository.java.
References com.runehive.content.clanchannel.channel.ClanChannel.load().
Referenced by com.runehive.RuneHive.processParallelStartupTasks().
|
static |
Definition at line 74 of file ClanRepository.java.
References ACTIVE_TAGS.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.setName().
|
static |
Handles removing a channel from the clan lists.
Definition at line 58 of file ClanRepository.java.
References ACTIVE_CHANNELS, CHANNELS, and saveClan().
|
static |
Definition at line 86 of file ClanRepository.java.
References ACTIVE_CHANNELS, and saveClan().
Referenced by com.runehive.game.task.impl.PlayerSaveEvent.execute(), and com.runehive.game.world.World.save().
|
staticprivate |
Definition at line 95 of file ClanRepository.java.
References com.runehive.util.GsonUtils.JSON_PRETTY_NO_NULLS.
Referenced by removeChannel(), saveAllActiveClans(), and setInactive().
|
static |
Definition at line 64 of file ClanRepository.java.
References ACTIVE_CHANNELS.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.establish().
|
static |
Definition at line 68 of file ClanRepository.java.
References ACTIVE_CHANNELS, and saveClan().
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.ban(), and com.runehive.content.clanchannel.channel.ClanChannel.disconnect().
|
static |
Definition at line 78 of file ClanRepository.java.
References CHANNELS.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.setTag().
|
static |
Set of all active clan chat channels.
Definition at line 24 of file ClanRepository.java.
Referenced by removeChannel(), saveAllActiveClans(), setActive(), setInactive(), and com.runehive.game.task.impl.ClanUpdateEvent.tick().
|
static |
Set of all active clan chat names.
Definition at line 30 of file ClanRepository.java.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.load(), and com.runehive.content.clanchannel.channel.ClanChannel.setName().
|
static |
Set of all active clan chat tags.
Definition at line 27 of file ClanRepository.java.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.load(), nameExist(), and com.runehive.content.clanchannel.channel.ClanChannel.setTag().
|
static |
Set of all active clan chat names.
Definition at line 33 of file ClanRepository.java.
Referenced by com.runehive.content.clanchannel.channel.ClanChannel.create(), getTopChanels(), and com.runehive.content.clanchannel.channel.ClanChannel.load().
|
staticprivate |
Map of all clan chat channels.
Definition at line 21 of file ClanRepository.java.
Referenced by addChannel(), getChannel(), removeChannel(), and tagExist().
|
staticprivate |
Set of all active clan chat names.
Definition at line 45 of file ClanRepository.java.
Referenced by getTopChanels(), and getTopChanels().
|
staticprivate |
Set of all active clan chat names.
Definition at line 39 of file ClanRepository.java.
Referenced by getTopChanels(), and getTopChanels().
|
staticprivate |
Set of all active clan chat names.
Definition at line 36 of file ClanRepository.java.
Referenced by getTopChanels(), and getTopChanels().
|
staticprivate |
Set of all active clan chat names.
Definition at line 42 of file ClanRepository.java.
Referenced by getTopChanels(), and getTopChanels().