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 NineGridTexture
backdropTexture
static boolean
doBackDrop
protected boolean
hasChatToDisplay
protected boolean
historyInRange
protected float
historyRange
protected float
historyVal
protected int
maxCharsPerLine
protected int
maxChatLines
protected ChatElementOwner
owner
protected zombie.chat.ChatElement.PlayerLines[]
playerLines
protected java.lang.String
sayLine
protected TextDrawObject
sayLineObject
protected java.lang.String
sayLineTag
protected boolean
Speaking
protected java.lang.String
talkerType
protected boolean
useEuclidean
-
Constructor Summary
Constructors Constructor Description ChatElement(ChatElementOwner chatowner, int numberoflines, java.lang.String talkertype)
-
Method Summary
Modifier and Type Method Description void
addChatLine(java.lang.String msg, float r, float g, float b)
void
addChatLine(java.lang.String msg, float r, float g, float b, float baseRange)
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)
static void
addNoLogText(java.lang.String text)
protected float
getDistance(IsoPlayer player)
boolean
getHasChatToDisplay()
int
getMaxChatLines()
java.lang.String
getSayLine()
java.lang.String
getSayLineTag()
protected float
getScrambleValue(IsoPlayer player, float baseRange)
java.lang.String
getTalkerType()
boolean
IsSpeaking()
protected boolean
playerWithinBounds(IsoPlayer player, float dist)
static void
RenderBatch(int playerNum)
void
renderBatched(int playerNum, int x, int y)
void
renderBatched(int playerNum, int x, int y, boolean ignoreRadioLines)
void
Say(java.lang.String line)
void
SayDebug(int n, java.lang.String text)
void
setHistoryRange(float range)
void
setMaxCharsPerLine(int maxChars)
void
setMaxChatLines(int num)
void
setTalkerType(java.lang.String type)
void
setUseEuclidean(boolean b)
void
update()
protected void
updateChatLines()
protected void
updateHistory()
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:
IsSpeaking
in interfaceTalker
-
getTalkerType
public java.lang.String getTalkerType()- Specified by:
getTalkerType
in interfaceTalker
-
setTalkerType
public void setTalkerType(java.lang.String type) -
getSayLine
public java.lang.String getSayLine()- Specified by:
getSayLine
in 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)
-