001         package com.croftsoft.apps.chat;
002    
003         import com.croftsoft.core.CroftSoftConstants;
004         import com.croftsoft.core.math.MathConstants;
005    
006         /*********************************************************************
007         * Chat constants.
008         *
009         * @version
010         *   2003-06-25
011         * @since
012         *   2003-06-17
013         * @author
014         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
015         *********************************************************************/
016    
017         public interface  ChatConstants
018         //////////////////////////////////////////////////////////////////////
019         //////////////////////////////////////////////////////////////////////
020         {
021    
022         public static final String  VERSION = "2003-06-25";
023    
024         public static final String  TITLE   = "CroftSoft Chat";
025    
026         public static final String  INFO
027           = "\n" + TITLE
028           + "\n" + CroftSoftConstants.COPYRIGHT
029           + "\n" + CroftSoftConstants.HOME_PAGE
030           + "\n" + "Version " + VERSION
031           + "\n" + CroftSoftConstants.DEFAULT_LICENSE
032           + "\n" + "Programming..:  David Wallace Croft"
033           + "\n" + "Graphics.....:  Shannon Kristine Croft"
034           + "\n";
035    
036         //////////////////////////////////////////////////////////////////////
037         //////////////////////////////////////////////////////////////////////
038    
039         public static final double  RADIUS = 20.0;
040    
041         public static final double  SPEED  = 85.0;
042    
043         //////////////////////////////////////////////////////////////////////
044         //////////////////////////////////////////////////////////////////////
045    
046         public static final String  MEDIA_DIR = "apps/chat/avatar/";
047    
048         public static final String  AVATAR_IMAGE_FILENAME_EXTENSION = ".png";
049    
050         public static final String [ ]  AVATAR_TYPES = {
051           "Cleric",
052           "Thief",
053           "Warrior",
054           "Wizard" };
055    
056         public static final int     DEFAULT_AVATAR_TYPE_INDEX = 3;
057    
058         public static final String  DEFAULT_AVATAR_TYPE
059           = AVATAR_TYPES [ DEFAULT_AVATAR_TYPE_INDEX ];
060    
061         public static final double  DEFAULT_AVATAR_X    = RADIUS;
062    
063         public static final double  DEFAULT_AVATAR_Y    = RADIUS;
064    
065         //////////////////////////////////////////////////////////////////////
066         //////////////////////////////////////////////////////////////////////
067    
068         public static final long  QUEUE_PULL_TIMEOUT
069           = 30 * MathConstants.MILLISECONDS_PER_SECOND;
070    
071         public static final long  REQUEST_TIMEOUT
072           = 2 * QUEUE_PULL_TIMEOUT;
073    
074         public static final long  USER_TIMEOUT
075           = 2 * QUEUE_PULL_TIMEOUT;
076    
077         //////////////////////////////////////////////////////////////////////
078         //////////////////////////////////////////////////////////////////////
079         }