Package VASSAL.chat.jabber
Class JabberRoom
java.lang.Object
VASSAL.chat.SimpleRoom
VASSAL.chat.jabber.JabberRoom
- All Implemented Interfaces:
LockableRoom,Room
public class JabberRoom extends SimpleRoom implements LockableRoom
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJabberRoom.JabberRoomConfigstatic classJabberRoom.Manager -
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_CRCstatic StringCONFIG_CRC_CHECKstatic StringCONFIG_LOCKEDstatic StringCONFIG_MIN_MODULE_VERSIONstatic StringCONFIG_MIN_VASSAL_VERSIONstatic StringCONFIG_MODULE_VERSIONstatic StringCONFIG_NAMEstatic StringCONFIG_VASSAL_VERSION -
Method Summary
Modifier and Type Method Description voidaddOwner(String jid)StringcanJoin(JabberPlayer p)Is the specified player allowed to join this room?static PropertiesconfigureNewRoom()voiddecodeConfig(String s)StringencodeConfig()booleanequals(Object o)StringgetCheckCrc()StringgetJID()StringgetModuleOption()StringgetModuleVersion()PlayergetOwningPlayer()StringgetVassalOption()StringgetVassalVersion()inthashCode()booleanisLocked()booleanisMatchCrc()booleanisOwnedByMe()booleanisOwner(String jid)booleanisStartLocked()org.jivesoftware.smackx.muc.MultiUserChatjoin(JabberClient client, JabberPlayer me)protected voidlock(org.jivesoftware.smackx.muc.MultiUserChat muc)voidremoveOwner(String jid)voidsetConfig(Properties props)voidsetInfo(org.jivesoftware.smackx.muc.RoomInfo info)voidshowConfig()voidtoggleLock(org.jivesoftware.smackx.muc.MultiUserChat muc)protected voidunlock(org.jivesoftware.smackx.muc.MultiUserChat muc)Methods inherited from class VASSAL.chat.SimpleRoom
addPlayer, contains, getName, getPlayer, getPlayerList, getPlayers, numPlayers, removePlayer, setName, setPlayers, toString
-
Field Details
-
CONFIG_NAME
- See Also:
- Constant Field Values
-
CONFIG_LOCKED
- See Also:
- Constant Field Values
-
CONFIG_VASSAL_VERSION
- See Also:
- Constant Field Values
-
CONFIG_MIN_VASSAL_VERSION
- See Also:
- Constant Field Values
-
CONFIG_MODULE_VERSION
- See Also:
- Constant Field Values
-
CONFIG_MIN_MODULE_VERSION
- See Also:
- Constant Field Values
-
CONFIG_CRC_CHECK
- See Also:
- Constant Field Values
-
CONFIG_CRC
- See Also:
- Constant Field Values
-
-
Method Details
-
getJID
-
isLocked
public boolean isLocked()- Specified by:
isLockedin interfaceLockableRoom
-
setInfo
public void setInfo(org.jivesoftware.smackx.muc.RoomInfo info) -
toggleLock
public void toggleLock(org.jivesoftware.smackx.muc.MultiUserChat muc) -
lock
protected void lock(org.jivesoftware.smackx.muc.MultiUserChat muc) throws org.jivesoftware.smack.XMPPException- Throws:
org.jivesoftware.smack.XMPPException
-
unlock
protected void unlock(org.jivesoftware.smackx.muc.MultiUserChat muc) throws org.jivesoftware.smack.XMPPException- Throws:
org.jivesoftware.smack.XMPPException
-
join
public org.jivesoftware.smackx.muc.MultiUserChat join(JabberClient client, JabberPlayer me) throws org.jivesoftware.smack.XMPPException- Throws:
org.jivesoftware.smack.XMPPException
-
equals
- Overrides:
equalsin classSimpleRoom
-
hashCode
public int hashCode()- Overrides:
hashCodein classSimpleRoom
-
isOwnedByMe
public boolean isOwnedByMe() -
isOwner
- Specified by:
isOwnerin interfaceLockableRoom
-
addOwner
-
removeOwner
-
getOwningPlayer
- Specified by:
getOwningPlayerin interfaceLockableRoom
-
setConfig
-
encodeConfig
-
decodeConfig
-
isStartLocked
public boolean isStartLocked() -
isMatchCrc
public boolean isMatchCrc() -
getCheckCrc
-
getVassalOption
-
getVassalVersion
-
getModuleOption
-
getModuleVersion
-
showConfig
public void showConfig() -
canJoin
Is the specified player allowed to join this room?- Parameters:
p- A JabberPlayer- Returns:
- null = false, non-null = error message
-
configureNewRoom
-