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 Details

    • members

      protected final java.util.ArrayList members
    • messages

      protected final java.util.ArrayList messages
  • Constructor Details

    • ChatBase

      protected ChatBase​(ChatType chatType)
    • ChatBase

      public ChatBase​(java.nio.ByteBuffer byteBuffer, ChatType chatType, ChatTab chatTab, IsoPlayer player)
    • ChatBase

      public ChatBase​(int int1, ChatType chatType, ChatTab chatTab)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • getChatOwnerName

      protected java.lang.String getChatOwnerName()
    • getChatOwner

      protected IsoPlayer getChatOwner()
    • getMode

      public ChatMode getMode()
    • getType

      public ChatType getType()
    • getID

      public int getID()
    • getTitleID

      public java.lang.String getTitleID()
    • getColor

      public Color getColor()
    • getTabID

      public short getTabID()
    • getRange

      public float getRange()
    • isSendingToRadio

      public boolean isSendingToRadio()
    • getZombieAttractionRange

      public float getZombieAttractionRange()
    • setSettings

      public void setSettings​(ChatSettings chatSettings)
    • 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

      protected void packChat​(ByteBufferWriter byteBufferWriter)
    • unpackMessage

      public ChatMessage unpackMessage​(java.nio.ByteBuffer byteBuffer)
    • packMessage

      public void packMessage​(ByteBufferWriter byteBufferWriter, ChatMessage chatMessage)
    • createMessage

      public ChatMessage createMessage​(java.lang.String string)
    • createServerMessage

      public ServerChatMessage createServerMessage​(java.lang.String string)
    • showMessage

      public void showMessage​(java.lang.String string, java.lang.String string2)
    • showMessage

      public void showMessage​(ChatMessage chatMessage)
    • getMessageTextWithPrefix

      public java.lang.String getMessageTextWithPrefix​(ChatMessage chatMessage)
    • sendMessageToChatMembers

      public void sendMessageToChatMembers​(ChatMessage chatMessage)
    • sendMessageToChatMembers

      public void sendMessageToChatMembers​(ServerChatMessage serverChatMessage)
    • sendMessageToPlayer

      public void sendMessageToPlayer​(UdpConnection udpConnection, ChatMessage chatMessage)
    • sendMessageToPlayer

      public void sendMessageToPlayer​(int int1, ChatMessage chatMessage)
    • getMessagePrefix

      public java.lang.String getMessagePrefix​(ChatMessage chatMessage)
    • getColorTag

      protected java.lang.String getColorTag()
    • getColorTag

      protected java.lang.String getColorTag​(Color color)
    • 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

      public void sendPlayerJoinChatPacket​(UdpConnection udpConnection)
    • sendPlayerLeaveChatPacket

      public void sendPlayerLeaveChatPacket​(java.lang.Integer integer)
    • sendPlayerLeaveChatPacket

      public void sendPlayerLeaveChatPacket​(UdpConnection udpConnection)
    • sendToServer

      public void sendToServer​(ChatMessage chatMessage)