File indexing completed on 2024-04-14 04:00:17

0001 /***************************************************************************
0002                                cmapdata.h
0003                              -------------------
0004     begin                : Sat Mar 10 2001
0005     copyright            : (C) 2001 by Kmud Developer Team
0006     email                : kmud-devel@kmud.de
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #ifndef CMAPDATA_H
0019 #define CMAPDATA_H
0020 
0021 #include <qsize.h>
0022 #include <qcolor.h>
0023 #include <qfont.h>
0024 #include <qstringlist.h>
0025 
0026 #include "cmapzone.h"
0027 #include "cmaproom.h"
0028 
0029 const uint NUM_DIRECTIONS = 10 * 2;
0030 
0031 /**This class is store all the map data
0032   *@author Kmud Developer Team
0033   */
0034 class CMapData
0035 {
0036 public:
0037     CMapData();
0038     ~CMapData();
0039 
0040     /** Initialize the directions to their default values. */
0041     void initDirections(void);
0042 
0043 public: 
0044     /** The default font for text labels */
0045     QFont defaultTextFont;
0046     /** The root zone */
0047     CMapZone *rootZone;
0048     /** The delay between each speed walk move in centi-seconds */
0049     int speedwalkDelay;
0050     /** Used to set the speedwalk abort active/inactive */
0051     bool speedwalkAbortActive;
0052     /** Used to store the number of steps before the speedwalk aports */
0053     int speedwalkAbortLimit;    
0054     /** Should the mapper check to see if a move was valid */
0055     bool validRoomCheck;
0056 
0057     // Used to store the color values
0058     QColor gridColor;
0059     QColor backgroundColor;
0060     QColor defaultZoneColor;
0061     QColor defaultPathColor;
0062     QColor defaultRoomColor;
0063     QColor lowerRoomColor;
0064     QColor lowerPathColor;
0065     QColor lowerZoneColor;
0066     QColor lowerTextColor;
0067     QColor higherRoomColor;
0068     QColor higherPathColor;
0069     QColor higherZoneColor;
0070     QColor higherTextColor;
0071     QColor defaultTextColor;
0072     QColor selectedColor;
0073     QColor specialColor;
0074     QColor loginColor;
0075     QColor editColor;
0076     QColor currentColor;
0077 
0078     // View options
0079     bool showUpperLevel;
0080     bool showLowerLevel;
0081 
0082     // Tool options
0083     bool gridVisable;
0084 
0085     QSize gridSize;
0086 
0087     bool defaultPathTwoWay;
0088 
0089     QStringList failedMoveMsg;
0090     
0091     QString directions[NUM_DIRECTIONS];
0092 };
0093 
0094 #endif