|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.config.ChannelConfig
public class ChannelConfig
Channel configuration.
Field Summary | |
---|---|
static int |
PLAYER_CAPACITY
Default player capacity |
static int |
SPECTATOR_CAPACITY
Default spectator capacity |
Constructor Summary | |
---|---|
ChannelConfig()
|
Method Summary | |
---|---|
void |
addFilter(FilterConfig fconf)
Registers a new filter. |
int |
getAccessLevel()
Gets the minimum access level required to join the channel. |
String |
getDescription()
Gets channel description. |
Iterator<FilterConfig> |
getFilters()
Returns an iterator of registered filters. |
int |
getMaxPlayers()
Gets maximum number of players allowed. |
int |
getMaxSpectators()
Gets maximum number of spectators allowed. |
String |
getName()
Gets channel name. |
String |
getPassword()
Gets the password. |
String |
getProperty(String name)
|
Settings |
getSettings()
Gets game parameters. |
String |
getTopic()
Return the topic. |
String |
getWinlistId()
|
boolean |
isIdleAllowed()
|
boolean |
isPasswordProtected()
Tell if a password is required to enter the channel. |
boolean |
isPersistent()
Tell if the channel will vanish once the last player leave |
void |
setAccessLevel(int accessLevel)
Sets the minimum access level required to join the channel. |
void |
setDescription(String description)
Sets the description shown on entering the channel. |
void |
setIdleAllowed(boolean idleAllowed)
|
void |
setMaxPlayers(int maxPlayers)
Sets the maximum number of players allowed at the same time in the channel. |
void |
setMaxSpectators(int maxSpectators)
Sets the maximum number of spectators allowed at the same time in the channel. |
void |
setName(String name)
Sets channel name. |
void |
setPassword(String password)
Sets the password to enter the channel. |
void |
setPersistent(boolean persistent)
Sets channel persistence |
void |
setProperty(String name,
String value)
|
void |
setSettings(Settings settings)
Sets game parameters. |
void |
setTopic(String topic)
Set the topic. |
void |
setWinlistId(String winlistId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SPECTATOR_CAPACITY
public static final int PLAYER_CAPACITY
Constructor Detail |
---|
public ChannelConfig()
Method Detail |
---|
public Settings getSettings()
public void setSettings(Settings settings)
settings
- public String getName()
public void setName(String name)
name
- public String getPassword()
public void setPassword(String password)
public String getDescription()
public void setDescription(String description)
public String getTopic()
public void setTopic(String topic)
public int getMaxPlayers()
public void setMaxPlayers(int maxPlayers)
maxPlayers
- public int getMaxSpectators()
public void setMaxSpectators(int maxSpectators)
maxSpectators
- public int getAccessLevel()
public void setAccessLevel(int accessLevel)
accessLevel
- public boolean isPersistent()
public void setPersistent(boolean persistent)
persistent
- public String getWinlistId()
public void setWinlistId(String winlistId)
public String getProperty(String name)
public void setProperty(String name, String value)
public boolean isPasswordProtected()
public Iterator<FilterConfig> getFilters()
public void addFilter(FilterConfig fconf)
public boolean isIdleAllowed()
public void setIdleAllowed(boolean idleAllowed)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |