Package zombie.chat
Class ChatElement
java.lang.Object
zombie.chat.ChatElement
- All Implemented Interfaces:
Talker
public class ChatElement extends java.lang.Object implements Talker
-
Field Summary
Fields Modifier and Type Field Description static NineGridTexturebackdropTexturestatic booleandoBackDropprotected booleanhasChatToDisplayprotected booleanhistoryInRangeprotected floathistoryRangeprotected floathistoryValprotected intmaxCharsPerLineprotected intmaxChatLinesprotected ChatElementOwnerownerprotected zombie.chat.ChatElement.PlayerLines[]playerLinesprotected java.lang.StringsayLineprotected TextDrawObjectsayLineObjectprotected java.lang.StringsayLineTagprotected booleanSpeakingprotected java.lang.StringtalkerTypeprotected booleanuseEuclidean -
Constructor Summary
Constructors Constructor Description ChatElement(ChatElementOwner chatowner, int numberoflines, java.lang.String talkertype) -
Method Summary
Modifier and Type Method Description voidaddChatLine(java.lang.String msg, float r, float g, float b)voidaddChatLine(java.lang.String msg, float r, float g, float b, float baseRange)voidaddChatLine(java.lang.String msg, float r, float g, float b, UIFont font, float baseRange, java.lang.String customTag, boolean bbcode, boolean img, boolean icons, boolean colors, boolean fonts, boolean equalizeHeights)static voidaddNoLogText(java.lang.String text)protected floatgetDistance(IsoPlayer player)booleangetHasChatToDisplay()intgetMaxChatLines()java.lang.StringgetSayLine()java.lang.StringgetSayLineTag()protected floatgetScrambleValue(IsoPlayer player, float baseRange)java.lang.StringgetTalkerType()booleanIsSpeaking()protected booleanplayerWithinBounds(IsoPlayer player, float dist)static voidRenderBatch(int playerNum)voidrenderBatched(int playerNum, int x, int y)voidrenderBatched(int playerNum, int x, int y, boolean ignoreRadioLines)voidSay(java.lang.String line)voidSayDebug(int n, java.lang.String text)voidsetHistoryRange(float range)voidsetMaxCharsPerLine(int maxChars)voidsetMaxChatLines(int num)voidsetTalkerType(java.lang.String type)voidsetUseEuclidean(boolean b)voidupdate()protected voidupdateChatLines()protected voidupdateHistory()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
playerLines
protected zombie.chat.ChatElement.PlayerLines[] playerLines -
owner
-
historyVal
protected float historyVal -
historyInRange
protected boolean historyInRange -
historyRange
protected float historyRange -
useEuclidean
protected boolean useEuclidean -
hasChatToDisplay
protected boolean hasChatToDisplay -
maxChatLines
protected int maxChatLines -
maxCharsPerLine
protected int maxCharsPerLine -
sayLine
protected java.lang.String sayLine -
sayLineTag
protected java.lang.String sayLineTag -
sayLineObject
-
Speaking
protected boolean Speaking -
talkerType
protected java.lang.String talkerType -
doBackDrop
public static boolean doBackDrop -
backdropTexture
-
-
Constructor Details
-
ChatElement
-
-
Method Details
-
setMaxChatLines
public void setMaxChatLines(int num) -
getMaxChatLines
public int getMaxChatLines() -
setMaxCharsPerLine
public void setMaxCharsPerLine(int maxChars) -
IsSpeaking
public boolean IsSpeaking()- Specified by:
IsSpeakingin interfaceTalker
-
getTalkerType
public java.lang.String getTalkerType()- Specified by:
getTalkerTypein interfaceTalker
-
setTalkerType
public void setTalkerType(java.lang.String type) -
getSayLine
public java.lang.String getSayLine()- Specified by:
getSayLinein interfaceTalker
-
getSayLineTag
public java.lang.String getSayLineTag() -
setHistoryRange
public void setHistoryRange(float range) -
setUseEuclidean
public void setUseEuclidean(boolean b) -
getHasChatToDisplay
public boolean getHasChatToDisplay() -
getDistance
-
playerWithinBounds
-
SayDebug
public void SayDebug(int n, java.lang.String text) -
Say
public void Say(java.lang.String line) -
addChatLine
public void addChatLine(java.lang.String msg, float r, float g, float b, float baseRange) -
addChatLine
public void addChatLine(java.lang.String msg, float r, float g, float b) -
addChatLine
public void addChatLine(java.lang.String msg, float r, float g, float b, UIFont font, float baseRange, java.lang.String customTag, boolean bbcode, boolean img, boolean icons, boolean colors, boolean fonts, boolean equalizeHeights) -
getScrambleValue
-
updateChatLines
protected void updateChatLines() -
updateHistory
protected void updateHistory() -
update
public void update() -
renderBatched
public void renderBatched(int playerNum, int x, int y) -
renderBatched
public void renderBatched(int playerNum, int x, int y, boolean ignoreRadioLines) -
RenderBatch
public static void RenderBatch(int playerNum) -
addNoLogText
public static void addNoLogText(java.lang.String text)
-