File indexing completed on 2025-01-05 05:09:58

0001 /***************************************************************************
0002  *   Copyright (C) 2016 by Renaud Guezennec                                *
0003  *   http:://www.rolisteam.org/contact                                     *
0004  *                                                                         *
0005  *   rolisteam is free software; you can redistribute it and/or modify     *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  *                                                                         *
0010  *   This program is distributed in the hope that it will be useful,       *
0011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
0012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
0013  *   GNU General Public License for more details.                          *
0014  *                                                                         *
0015  *   You should have received a copy of the GNU General Public License     *
0016  *   along with this program; if not, write to the                         *
0017  *   Free Software Foundation, Inc.,                                       *
0018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
0019  ***************************************************************************/
0020 #ifndef HighLightDice_H
0021 #define HighLightDice_H
0022 
0023 #include <QList>
0024 #include <QMap>
0025 #include <QString>
0026 
0027 #include <diceparser/diceparser_global.h>
0028 
0029 class DICEPARSER_EXPORT HighLightDice
0030 {
0031 public:
0032     HighLightDice(QList<qint64> result, bool isHighlighted, QString color, bool displayed, quint64 faces,
0033                   const QString& uuid);
0034     virtual ~HighLightDice();
0035 
0036     QList<qint64> result() const;
0037     void setResult(const QList<qint64>& result);
0038 
0039     bool isHighlighted() const;
0040     void setHighlight(bool hasHighlight);
0041 
0042     QString color() const;
0043     void setColor(const QString& color);
0044 
0045     bool displayed() const;
0046     void setDisplayed(bool displayed);
0047 
0048     quint64 faces() const;
0049     void setFaces(const quint64& faces);
0050 
0051     QString getResultString() const;
0052 
0053     QString uuid() const;
0054     void setUuid(const QString& uuid);
0055 
0056 private:
0057     QList<qint64> m_result;
0058     bool m_hasHighlight= true;
0059     QString m_color;
0060     bool m_displayed= false;
0061     quint64 m_faces;
0062     QString m_uuid;
0063 };
0064 
0065 typedef QList<HighLightDice> ListDiceResult;
0066 typedef QMap<quint64, QList<ListDiceResult>> ExportedDiceResult;
0067 
0068 #endif // HighLightDice_H