aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-22 14:40:21 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-22 14:40:21 +0200
commitb36a3b448603514c392a8db8160af72788731c44 (patch)
tree13a512fca51fb4ee91356b1997b746e353054649 /diceparser.h
parentd4c03f1eb5627294df3675de2e8e55fd721e37d8 (diff)
downloadOneRoll-b36a3b448603514c392a8db8160af72788731c44.tar.gz
OneRoll-b36a3b448603514c392a8db8160af72788731c44.zip
change the way die result are transmitted to client application
Diffstat (limited to 'diceparser.h')
-rw-r--r--diceparser.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/diceparser.h b/diceparser.h
index b4fd429..3f80acb 100644
--- a/diceparser.h
+++ b/diceparser.h
@@ -34,6 +34,11 @@
#include "parsingtoolbox.h"
#include "dicealias.h"
+
+typedef QPair<QList<quint64>,bool> DiceAndHighlight;
+typedef QList<DiceAndHighlight > ListDiceResult;
+typedef QMap<int,ListDiceResult > ExportedDiceResult;
+
class ExploseDiceNode;
/**
* @mainpage DiceParser
@@ -131,7 +136,7 @@ public:
* @brief getLastDiceResult
* @return
*/
- QString getLastDiceResult();
+ void getLastDiceResult(ExportedDiceResult& diceValues);
/**
* @brief hasIntegerResultNotInFirst
* @return