com.planet_ink.coffee_mud.Libraries
Class CMLister

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

public class CMLister
extends StdLibrary
implements ListingLibrary


Nested Class Summary
protected static class CMLister.AbilityTypeFilter
           
protected static class CMLister.LikeRoomFilter
           
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.ListingLibrary
ListingLibrary.ListStringer
 
Field Summary
protected static Filterer<java.lang.Object>[] NO_FILTER
           
protected static ListingLibrary.ListStringer stringer
           
 
Fields inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
isDebugging, name, serviceClient, tickStatus
 
Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BEAMWEAPON, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
 
Constructor Summary
CMLister()
           
 
Method Summary
 void appendReps(int reps, java.lang.StringBuilder say, boolean compress)
           
protected  Filterer<java.lang.Object>[] buildLikeRoomFilter(Room R)
           
protected  Filterer<java.lang.Object>[] buildOfTypeFilter(int ofType)
           
 int fixColWidth(double colWidth, double totalWidth)
           
 int fixColWidth(double colWidth, MOB mob)
           
 int fixColWidth(double colWidth, Session session)
           
 void fixColWidths(int[] colWidths, Session session)
           
 java.lang.StringBuilder fourColumns(MOB viewerM, java.util.List<java.lang.String> reverseList)
           
 java.lang.StringBuilder fourColumns(MOB viewerM, java.util.List<java.lang.String> reverseList, java.lang.String tag)
           
 ListingLibrary.ListStringer getListStringer()
           
 int getReps(MOB viewerM, Environmental item, java.util.List<? extends Environmental> theRest, boolean useName, boolean longLook)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 java.lang.String itemSeenString(MOB viewerM, Environmental item, boolean useName, boolean longLook, boolean sysmsgs, boolean compress)
           
 java.lang.StringBuilder lister(MOB viewerM, java.util.List<? extends Environmental> items, boolean useName, java.lang.String tag, java.lang.String tagParm, boolean longLook, boolean compress)
           
 java.lang.StringBuilder makeColumns(MOB viewerM, java.util.List<java.lang.String> reverseList, java.lang.String tag, int numCols)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, Filterer<java.lang.Object>[] filters, ListingLibrary.ListStringer stringer)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, int ofType)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, Room likeRoom)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Map<java.lang.String,? extends java.lang.Object> these)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Map<java.lang.String,? extends java.lang.Object> these, Filterer<java.lang.Object>[] filters, ListingLibrary.ListStringer stringer)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Map<java.lang.String,? extends java.lang.Object> these, int ofType)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Map<java.lang.String,? extends java.lang.Object> these, Room likeRoom)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Vector<? extends java.lang.Object> these)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Vector<? extends java.lang.Object> these, Filterer<java.lang.Object>[] filters, ListingLibrary.ListStringer stringer)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Vector<? extends java.lang.Object> these, int ofType)
           
 java.lang.StringBuilder reallyList(MOB viewerM, java.util.Vector<? extends java.lang.Object> these, Room likeRoom)
           
 java.lang.StringBuilder reallyList2Cols(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these)
           
 java.lang.StringBuilder reallyList2Cols(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, Filterer<java.lang.Object>[] filters, ListingLibrary.ListStringer stringer)
           
 java.lang.StringBuilder reallyWikiList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, Filterer<java.lang.Object>[] filters, boolean includeName)
           
 java.lang.StringBuilder reallyWikiList(MOB viewerM, java.util.Enumeration<? extends java.lang.Object> these, int ofType)
           
 java.lang.String summarizeTheRest(MOB viewerM, java.util.List<? extends Environmental> things, boolean compress)
           
 java.lang.StringBuilder threeColumns(MOB viewerM, java.util.List<java.lang.String> reverseList)
           
 java.lang.StringBuilder threeColumns(MOB viewerM, java.util.List<java.lang.String> reverseList, java.lang.String tag)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tick
 
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, getServiceClient, L, propertiesLoaded, shutdown
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, name, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

NO_FILTER

protected static final Filterer<java.lang.Object>[] NO_FILTER

stringer

protected static final ListingLibrary.ListStringer stringer
Constructor Detail

CMLister

public CMLister()
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, Tech. 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

getListStringer

public ListingLibrary.ListStringer getListStringer()
Specified by:
getListStringer in interface ListingLibrary

itemSeenString

public java.lang.String itemSeenString(MOB viewerM,
                                       Environmental item,
                                       boolean useName,
                                       boolean longLook,
                                       boolean sysmsgs,
                                       boolean compress)
Specified by:
itemSeenString in interface ListingLibrary

getReps

public int getReps(MOB viewerM,
                   Environmental item,
                   java.util.List<? extends Environmental> theRest,
                   boolean useName,
                   boolean longLook)
Specified by:
getReps in interface ListingLibrary

appendReps

public void appendReps(int reps,
                       java.lang.StringBuilder say,
                       boolean compress)
Specified by:
appendReps in interface ListingLibrary

summarizeTheRest

public java.lang.String summarizeTheRest(MOB viewerM,
                                         java.util.List<? extends Environmental> things,
                                         boolean compress)

lister

public java.lang.StringBuilder lister(MOB viewerM,
                                      java.util.List<? extends Environmental> items,
                                      boolean useName,
                                      java.lang.String tag,
                                      java.lang.String tagParm,
                                      boolean longLook,
                                      boolean compress)
Specified by:
lister in interface ListingLibrary

buildOfTypeFilter

protected Filterer<java.lang.Object>[] buildOfTypeFilter(int ofType)

buildLikeRoomFilter

protected Filterer<java.lang.Object>[] buildLikeRoomFilter(Room R)

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Map<java.lang.String,? extends java.lang.Object> these,
                                          int ofType)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Map<java.lang.String,? extends java.lang.Object> these)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Map<java.lang.String,? extends java.lang.Object> these,
                                          Room likeRoom)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Vector<? extends java.lang.Object> these,
                                          int ofType)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Enumeration<? extends java.lang.Object> these,
                                          int ofType)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Vector<? extends java.lang.Object> these)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Enumeration<? extends java.lang.Object> these)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Vector<? extends java.lang.Object> these,
                                          Room likeRoom)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Map<java.lang.String,? extends java.lang.Object> these,
                                          Filterer<java.lang.Object>[] filters,
                                          ListingLibrary.ListStringer stringer)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Vector<? extends java.lang.Object> these,
                                          Filterer<java.lang.Object>[] filters,
                                          ListingLibrary.ListStringer stringer)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Enumeration<? extends java.lang.Object> these,
                                          Room likeRoom)
Specified by:
reallyList in interface ListingLibrary

reallyList

public java.lang.StringBuilder reallyList(MOB viewerM,
                                          java.util.Enumeration<? extends java.lang.Object> these,
                                          Filterer<java.lang.Object>[] filters,
                                          ListingLibrary.ListStringer stringer)
Specified by:
reallyList in interface ListingLibrary

reallyWikiList

public java.lang.StringBuilder reallyWikiList(MOB viewerM,
                                              java.util.Enumeration<? extends java.lang.Object> these,
                                              int ofType)
Specified by:
reallyWikiList in interface ListingLibrary

reallyWikiList

public java.lang.StringBuilder reallyWikiList(MOB viewerM,
                                              java.util.Enumeration<? extends java.lang.Object> these,
                                              Filterer<java.lang.Object>[] filters,
                                              boolean includeName)
Specified by:
reallyWikiList in interface ListingLibrary

reallyList2Cols

public java.lang.StringBuilder reallyList2Cols(MOB viewerM,
                                               java.util.Enumeration<? extends java.lang.Object> these)
Specified by:
reallyList2Cols in interface ListingLibrary

reallyList2Cols

public java.lang.StringBuilder reallyList2Cols(MOB viewerM,
                                               java.util.Enumeration<? extends java.lang.Object> these,
                                               Filterer<java.lang.Object>[] filters,
                                               ListingLibrary.ListStringer stringer)
Specified by:
reallyList2Cols in interface ListingLibrary

fourColumns

public java.lang.StringBuilder fourColumns(MOB viewerM,
                                           java.util.List<java.lang.String> reverseList)
Specified by:
fourColumns in interface ListingLibrary

fourColumns

public java.lang.StringBuilder fourColumns(MOB viewerM,
                                           java.util.List<java.lang.String> reverseList,
                                           java.lang.String tag)
Specified by:
fourColumns in interface ListingLibrary

threeColumns

public java.lang.StringBuilder threeColumns(MOB viewerM,
                                            java.util.List<java.lang.String> reverseList)
Specified by:
threeColumns in interface ListingLibrary

threeColumns

public java.lang.StringBuilder threeColumns(MOB viewerM,
                                            java.util.List<java.lang.String> reverseList,
                                            java.lang.String tag)
Specified by:
threeColumns in interface ListingLibrary

fixColWidth

public int fixColWidth(double colWidth,
                       MOB mob)
Specified by:
fixColWidth in interface ListingLibrary

fixColWidth

public int fixColWidth(double colWidth,
                       Session session)
Specified by:
fixColWidth in interface ListingLibrary

fixColWidths

public void fixColWidths(int[] colWidths,
                         Session session)
Specified by:
fixColWidths in interface ListingLibrary

fixColWidth

public int fixColWidth(double colWidth,
                       double totalWidth)
Specified by:
fixColWidth in interface ListingLibrary

makeColumns

public java.lang.StringBuilder makeColumns(MOB viewerM,
                                           java.util.List<java.lang.String> reverseList,
                                           java.lang.String tag,
                                           int numCols)
Specified by:
makeColumns in interface ListingLibrary