aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceroller.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-06-19 08:54:57 +0200
committerRenaud G <renaud@rolisteam.org>2020-08-21 22:50:44 +0200
commit62b7114ce29af10395273acec8dffeb41f255145 (patch)
treeb15ccf438ea03c0d7673e8efb174b3a1042e92aa /diceroller.cpp
parent80ab093722485fe7ac577415ae401f347907623c (diff)
downloadOneRoll-62b7114ce29af10395273acec8dffeb41f255145.tar.gz
OneRoll-62b7114ce29af10395273acec8dffeb41f255145.zip
change the way diceparser is giving its result.
Diffstat (limited to 'diceroller.cpp')
-rw-r--r--diceroller.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/diceroller.cpp b/diceroller.cpp
index 3d91f3e..cba24df 100644
--- a/diceroller.cpp
+++ b/diceroller.cpp
@@ -101,14 +101,14 @@ QString DiceRoller::diceToText(QList<ExportedDiceResult>& diceList)
}
void DiceRoller::start()
{
- if(m_diceparser.parseLine(m_command))
+ /*if(m_diceparser.parseLine(m_command))
{
m_diceparser.start();
- if(m_diceparser.getErrorMap().isEmpty())
+ if(m_diceparser.errorMap().isEmpty())
{
bool homogeneous;
QList<ExportedDiceResult> list;
- m_diceparser.getLastDiceResult(list, homogeneous);
+ m_diceparser.lastDiceResult(list, homogeneous);
QString diceText= diceToText(list);
QString scalarText;
QString str;
@@ -117,7 +117,7 @@ void DiceRoller::start()
QString resultStr;
if(m_diceparser.hasIntegerResultNotInFirst())
{
- auto values= m_diceparser.getLastIntegerResults();
+ auto values= m_diceparser.lastIntegerResults();
QStringList strLst;
for(auto& val : values)
{
@@ -169,7 +169,7 @@ void DiceRoller::start()
{
auto errors= m_diceparser.getErrorMap();
setError(errors.first());
- }
+ }*/
}
QString DiceRoller::getError() const
@@ -185,4 +185,3 @@ void DiceRoller::setError(const QString& error)
m_error= error;
emit errorOccurs();
}
-