Crossfire JXClient, Trunk
SettingsEntries.java
Go to the documentation of this file.
1 /*
2  * This file is part of JXClient, the Fullscreen Java Crossfire Client.
3  *
4  * JXClient is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * JXClient is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with JXClient; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * Copyright (C) 2005-2008 Yann Chachkoff
19  * Copyright (C) 2006-2017,2019-2023 Andreas Kirschbaum
20  * Copyright (C) 2010-2012,2014-2018,2020-2023 Nicolas Weeger
21  */
22 
23 package com.realtime.crossfire.jxclient.settings;
24 
26 import org.jetbrains.annotations.NotNull;
27 
32 public class SettingsEntries {
33 
37  @NotNull
38  public static final SettingsEntry<String> SERVER = new SettingsEntry<>("server", "crossfire.metalforge.net", "The server last connected to.");
39 
43  @NotNull
44  public static final SettingsEntry<Boolean> MESSAGE_LOG_SETTINGS_ENTRY = new SettingsEntry<>("messagelog", false, "Whether to record all text messages into a file.");
45 
49  private SettingsEntries() {
50  }
51 
58  @NotNull
59  public static SettingsEntry<String> getPlayerSettingsEntry(@NotNull final String hostname) {
60  return new SettingsEntry<>("player_"+hostname, "", "The charactername last played on the server.");
61  }
62 
69  @NotNull
70  public static SettingsEntry<String> getLoginAccountSettingsEntry(@NotNull final String hostname) {
71  return new SettingsEntry<>("login_account_"+hostname, "", "The account last logged in on the server.");
72  }
73 
81  @NotNull
82  public static SettingsEntry<String> getLoginAccountSettingsEntry(@NotNull final String hostname, @NotNull final String accountName) {
83  return new SettingsEntry<>("login_account_"+hostname+"_"+accountName, "", "The character last selected on the account.");
84  }
85 
93  @NotNull
94  public static SettingsEntry<Long> getPickupSettingsEntry(@NotNull final String hostname, @NotNull final String characterName) {
95  return new SettingsEntry<>("pickup_"+hostname+"_"+characterName, Pickup.PU_NOTHING, "The character's pickup mode.");
96  }
97 
98 }
com.realtime.crossfire.jxclient
com.realtime.crossfire.jxclient.settings.SettingsEntries.MESSAGE_LOG_SETTINGS_ENTRY
static final SettingsEntry< Boolean > MESSAGE_LOG_SETTINGS_ENTRY
Definition: SettingsEntries.java:44
com.realtime.crossfire.jxclient.settings.SettingsEntries.getLoginAccountSettingsEntry
static SettingsEntry< String > getLoginAccountSettingsEntry(@NotNull final String hostname, @NotNull final String accountName)
Definition: SettingsEntries.java:82
com.realtime.crossfire.jxclient.settings.SettingsEntries.SERVER
static final SettingsEntry< String > SERVER
Definition: SettingsEntries.java:38
com.realtime.crossfire.jxclient.settings.SettingsEntries.getPlayerSettingsEntry
static SettingsEntry< String > getPlayerSettingsEntry(@NotNull final String hostname)
Definition: SettingsEntries.java:59
com.realtime.crossfire.jxclient.settings
Definition: CommandHistory.java:23
com.realtime.crossfire.jxclient.settings.SettingsEntries.getPickupSettingsEntry
static SettingsEntry< Long > getPickupSettingsEntry(@NotNull final String hostname, @NotNull final String characterName)
Definition: SettingsEntries.java:94
com.realtime.crossfire.jxclient.settings.SettingsEntries.SettingsEntries
SettingsEntries()
Definition: SettingsEntries.java:49
com.realtime.crossfire.jxclient.settings.SettingsEntries.getLoginAccountSettingsEntry
static SettingsEntry< String > getLoginAccountSettingsEntry(@NotNull final String hostname)
Definition: SettingsEntries.java:70
com.realtime.crossfire.jxclient.settings.options.Pickup
Definition: Pickup.java:34
com.realtime.crossfire
com.realtime.crossfire.jxclient.settings.options
Definition: CheckBoxOption.java:23
com.realtime
com
com.realtime.crossfire.jxclient.settings.options.Pickup.PU_NOTHING
static final long PU_NOTHING
Definition: Pickup.java:39
com.realtime.crossfire.jxclient.settings.SettingsEntries
Definition: SettingsEntries.java:32
com.realtime.crossfire.jxclient.settings.SettingsEntry< String >