com.planet_ink.coffee_mud.Libraries
Class CMColor

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.CMColor
All Implemented Interfaces:
CMObject, CMLibrary, ColorLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class CMColor
extends StdLibrary
implements ColorLibrary


Field Summary
 java.lang.String[] clookup
           
 java.lang.String[] htlookup
           
 
Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.ColorLibrary
COLOR_ALLCOLORNAMES, COLOR_ALLCOLORS, COLOR_ALLEXTENDEDCOLORCODELETTERS, COLOR_ALLHTTAGS, COLOR_ALLNORMALCOLORCODELETTERS, COLOR_BGBLACK, COLOR_BGBLUE, COLOR_BGCYAN, COLOR_BGDEFAULT, COLOR_BGGREEN, COLOR_BGPURPLE, COLOR_BGRED, COLOR_BGWHITE, COLOR_BGYELLOW, COLOR_BLACK, COLOR_BLINK, COLOR_BLUE, COLOR_BOLD, COLOR_BROWN, COLOR_CODELETTERSINCARDINALORDER, COLOR_CYAN, COLOR_DARKGREY, COLOR_GREEN, COLOR_GREY, COLOR_ITALICS, COLOR_LIGHTBLUE, COLOR_LIGHTCYAN, COLOR_LIGHTGREEN, COLOR_LIGHTPURPLE, COLOR_LIGHTRED, COLOR_NONE, COLOR_PURPLE, COLOR_RED, COLOR_UNDERLINE, COLOR_WHITE, COLOR_YELLOW, COLORCODE_ALLCODENAMES, COLORCODE_ALLCODES, COLORCODE_CHANNEL, COLORCODE_CHANNELFORE, COLORCODE_DIRECTION, COLORCODE_DOORDESC, COLORCODE_EMOTE, COLORCODE_FIGHT, COLORCODE_FIGHT_YOU, COLORCODE_HIGHLIGHT, COLORCODE_HITPOINTS, COLORCODE_IMPORTANT1, COLORCODE_IMPORTANT2, COLORCODE_IMPORTANT3, COLORCODE_ITEM, COLORCODE_MANA, COLORCODE_MOB, COLORCODE_MOVES, COLORCODE_NORMAL, COLORCODE_ROOMDESC, COLORCODE_ROOMTITLE, COLORCODE_SPELL, COLORCODE_TALK, COLORCODE_TELL, COLORCODE_UNEXPDIRECTION, COLORCODE_UNEXPDOORDESC, COLORCODE_WEATHER, COLORCODE_YOU_FIGHT, HTTAG_BGBLACK, HTTAG_BGBLUE, HTTAG_BGCYAN, HTTAG_BGDEFAULT, HTTAG_BGGREEN, HTTAG_BGPURPLE, HTTAG_BGRED, HTTAG_BGWHITE, HTTAG_BGYELLOW, HTTAG_BLACK, HTTAG_BLINK, HTTAG_BLUE, HTTAG_BOLD, HTTAG_BROWN, HTTAG_CYAN, HTTAG_DARKGREY, HTTAG_GREEN, HTTAG_GREY, HTTAG_ITALICS, HTTAG_LIGHTBLUE, HTTAG_LIGHTCYAN, HTTAG_LIGHTGREEN, HTTAG_LIGHTPURPLE, HTTAG_LIGHTRED, HTTAG_NONE, HTTAG_PURPLE, HTTAG_RED, HTTAG_UNDERLINE, HTTAG_WHITE, HTTAG_YELLOW
 
Constructor Summary
CMColor()
           
 
Method Summary
 void clearLookups()
           
 CMMsg fixSourceFightColor(CMMsg msg)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 java.lang.String mixColorCodes(java.lang.String code1, java.lang.String code2)
           
 java.lang.String mixHTMLCodes(java.lang.String code1, java.lang.String code2)
           
 java.lang.String[] standardColorLookups()
           
 java.lang.String[] standardHTMLlookups()
           
 java.lang.String translateANSItoCMCode(java.lang.String code)
           
 java.lang.String translateCMCodeToANSI(java.lang.String code)
           
 int translateSingleCMCodeToANSIOffSet(java.lang.String code)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary
activate, getSupportThread, shutdown
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

clookup

public java.lang.String[] clookup

htlookup

public java.lang.String[] htlookup
Constructor Detail

CMColor

public CMColor()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdLibrary
Returns:
the name of this class

translateSingleCMCodeToANSIOffSet

public int translateSingleCMCodeToANSIOffSet(java.lang.String code)
Specified by:
translateSingleCMCodeToANSIOffSet in interface ColorLibrary

translateCMCodeToANSI

public java.lang.String translateCMCodeToANSI(java.lang.String code)
Specified by:
translateCMCodeToANSI in interface ColorLibrary

translateANSItoCMCode

public java.lang.String translateANSItoCMCode(java.lang.String code)
Specified by:
translateANSItoCMCode in interface ColorLibrary

mixHTMLCodes

public java.lang.String mixHTMLCodes(java.lang.String code1,
                                     java.lang.String code2)
Specified by:
mixHTMLCodes in interface ColorLibrary

mixColorCodes

public java.lang.String mixColorCodes(java.lang.String code1,
                                      java.lang.String code2)
Specified by:
mixColorCodes in interface ColorLibrary

fixSourceFightColor

public CMMsg fixSourceFightColor(CMMsg msg)
Specified by:
fixSourceFightColor in interface ColorLibrary

standardHTMLlookups

public java.lang.String[] standardHTMLlookups()
Specified by:
standardHTMLlookups in interface ColorLibrary

clearLookups

public void clearLookups()
Specified by:
clearLookups in interface ColorLibrary

standardColorLookups

public java.lang.String[] standardColorLookups()
Specified by:
standardColorLookups in interface ColorLibrary