Package zombie.chat
Class ChatBase
java.lang.Object
zombie.chat.ChatBase
- Direct Known Subclasses:
AdminChat
,FactionChat
,GeneralChat
,RangeBasedChat
,SafehouseChat
,ServerChat
,WhisperChat
public abstract class ChatBase
extends java.lang.Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addMember(int int1)
void
close()
ChatMessage
createMessage(java.lang.String string)
ServerChatMessage
createServerMessage(java.lang.String string)
protected IsoPlayer
getChatOwner()
protected java.lang.String
getChatOwnerName()
protected java.lang.String
getChatSettingsTags()
Color
getColor()
protected java.lang.String
getColorTag()
protected java.lang.String
getColorTag(Color color)
protected java.lang.String
getFontSize()
protected java.lang.String
getFontSizeTag()
int
getID()
java.util.ArrayList
getJustAddedMembers()
java.util.ArrayList
getJustRemovedMembers()
java.lang.String
getMessagePrefix(ChatMessage chatMessage)
java.lang.String
getMessageTextWithPrefix(ChatMessage chatMessage)
ChatMode
getMode()
float
getRange()
short
getTabID()
protected java.lang.String
getTitle()
java.lang.String
getTitleID()
ChatType
getType()
float
getZombieAttractionRange()
protected boolean
isAllowBBcode()
protected boolean
isAllowChatIcons()
protected boolean
isAllowColors()
protected boolean
isAllowFonts()
protected boolean
isAllowImages()
protected boolean
isCustomSettings()
boolean
isEnabled()
protected boolean
isEqualizeLineHeights()
boolean
isSendingToRadio()
protected boolean
isShowAuthor()
protected boolean
isShowTimestamp()
protected boolean
isShowTitle()
void
leaveMember(java.lang.Integer integer)
protected void
packChat(ByteBufferWriter byteBufferWriter)
void
packMessage(ByteBufferWriter byteBufferWriter, ChatMessage chatMessage)
void
removeMember(java.lang.Integer integer)
void
sendMessageToChatMembers(ChatMessage chatMessage)
void
sendMessageToChatMembers(ServerChatMessage serverChatMessage)
void
sendMessageToPlayer(int int1, ChatMessage chatMessage)
void
sendMessageToPlayer(UdpConnection udpConnection, ChatMessage chatMessage)
void
sendPlayerJoinChatPacket(UdpConnection udpConnection)
void
sendPlayerLeaveChatPacket(java.lang.Integer integer)
void
sendPlayerLeaveChatPacket(UdpConnection udpConnection)
void
sendToServer(ChatMessage chatMessage)
void
setFontSize(java.lang.String string)
void
setSettings(ChatSettings chatSettings)
void
setShowTimestamp(boolean boolean1)
void
setShowTitle(boolean boolean1)
void
showMessage(java.lang.String string, java.lang.String string2)
void
showMessage(ChatMessage chatMessage)
void
syncMembersByUsernames(java.util.ArrayList arrayList)
ChatMessage
unpackMessage(java.nio.ByteBuffer byteBuffer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
members
protected final java.util.ArrayList members -
messages
protected final java.util.ArrayList messages
-
-
Constructor Details
-
ChatBase
-
ChatBase
-
ChatBase
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
getChatOwnerName
protected java.lang.String getChatOwnerName() -
getChatOwner
-
getMode
-
getType
-
getID
public int getID() -
getTitleID
public java.lang.String getTitleID() -
getColor
-
getTabID
public short getTabID() -
getRange
public float getRange() -
isSendingToRadio
public boolean isSendingToRadio() -
getZombieAttractionRange
public float getZombieAttractionRange() -
setSettings
-
setFontSize
public void setFontSize(java.lang.String string) -
setShowTimestamp
public void setShowTimestamp(boolean boolean1) -
setShowTitle
public void setShowTitle(boolean boolean1) -
isCustomSettings
protected boolean isCustomSettings() -
isAllowImages
protected boolean isAllowImages() -
isAllowChatIcons
protected boolean isAllowChatIcons() -
isAllowColors
protected boolean isAllowColors() -
isAllowFonts
protected boolean isAllowFonts() -
isAllowBBcode
protected boolean isAllowBBcode() -
isEqualizeLineHeights
protected boolean isEqualizeLineHeights() -
isShowAuthor
protected boolean isShowAuthor() -
isShowTimestamp
protected boolean isShowTimestamp() -
isShowTitle
protected boolean isShowTitle() -
getFontSize
protected java.lang.String getFontSize() -
getTitle
protected java.lang.String getTitle() -
close
public void close() -
packChat
-
unpackMessage
-
packMessage
-
createMessage
-
createServerMessage
-
showMessage
public void showMessage(java.lang.String string, java.lang.String string2) -
showMessage
-
getMessageTextWithPrefix
-
sendMessageToChatMembers
-
sendMessageToChatMembers
-
sendMessageToPlayer
-
sendMessageToPlayer
-
getMessagePrefix
-
getColorTag
protected java.lang.String getColorTag() -
getColorTag
-
getFontSizeTag
protected java.lang.String getFontSizeTag() -
getChatSettingsTags
protected java.lang.String getChatSettingsTags() -
addMember
public void addMember(int int1) -
leaveMember
public void leaveMember(java.lang.Integer integer) -
removeMember
public void removeMember(java.lang.Integer integer) -
syncMembersByUsernames
public void syncMembersByUsernames(java.util.ArrayList arrayList) -
getJustAddedMembers
public java.util.ArrayList getJustAddedMembers() -
getJustRemovedMembers
public java.util.ArrayList getJustRemovedMembers() -
sendPlayerJoinChatPacket
-
sendPlayerLeaveChatPacket
public void sendPlayerLeaveChatPacket(java.lang.Integer integer) -
sendPlayerLeaveChatPacket
-
sendToServer
-