summaryrefslogtreecommitdiffstats
path: root/sigmod/Rules.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-11-25 19:04:19 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-11-25 19:04:19 -0500
commit02a4bbebbd94e7d440d0a0d6e6620d46a60437e5 (patch)
tree53f515c2e30bfa5ffa63173a9acc331aa2e2e772 /sigmod/Rules.cpp
parentf5a98518420c74e8acc421879689faf948235e29 (diff)
downloadsigen-02a4bbebbd94e7d440d0a0d6e6620d46a60437e5.tar.gz
sigen-02a4bbebbd94e7d440d0a0d6e6620d46a60437e5.tar.xz
sigen-02a4bbebbd94e7d440d0a0d6e6620d46a60437e5.zip
Rules no longer needs hardCash value; scripts can control it
Diffstat (limited to 'sigmod/Rules.cpp')
-rw-r--r--sigmod/Rules.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/sigmod/Rules.cpp b/sigmod/Rules.cpp
index 5442dbdf..20fe5a95 100644
--- a/sigmod/Rules.cpp
+++ b/sigmod/Rules.cpp
@@ -50,7 +50,6 @@ Sigmod::Rules::Rules(const Sigmod* parent) :
m_maxStages(6),
m_maxMoney(0),
m_maxTotalWeight(0),
- m_hardCash(false),
m_allowSwitchStyle(false),
m_specialSplit(false),
m_specialDVSplit(false),
@@ -113,7 +112,6 @@ void Sigmod::Rules::load(const QDomElement& xml)
LOAD(maxStages);
LOAD(maxMoney);
LOAD(maxTotalWeight);
- LOAD(hardCash);
LOAD(allowSwitchStyle);
LOAD(specialSplit);
LOAD(specialDVSplit);
@@ -143,7 +141,6 @@ QDomElement Sigmod::Rules::save() const
SAVE(maxStages);
SAVE(maxMoney);
SAVE(maxTotalWeight);
- SAVE(hardCash);
SAVE(allowSwitchStyle);
SAVE(specialSplit);
SAVE(specialDVSplit);
@@ -267,11 +264,6 @@ void Sigmod::Rules::setMaxTotalWeight(const int maxTotalWeight)
CHECK(maxTotalWeight);
}
-void Sigmod::Rules::setHardCash(const bool hardCash)
-{
- CHECK(hardCash);
-}
-
void Sigmod::Rules::setAllowSwitchStyle(const bool allowSwitchStyle)
{
CHECK(allowSwitchStyle);
@@ -401,11 +393,6 @@ int Sigmod::Rules::maxTotalWeight() const
return m_maxTotalWeight;
}
-bool Sigmod::Rules::hardCash() const
-{
- return m_hardCash;
-}
-
bool Sigmod::Rules::allowSwitchStyle() const
{
return m_allowSwitchStyle;
@@ -458,7 +445,6 @@ Sigmod::Rules& Sigmod::Rules::operator=(const Rules& rhs)
COPY(maxStages);
COPY(maxMoney);
COPY(maxTotalWeight);
- COPY(hardCash);
COPY(allowSwitchStyle);
COPY(specialSplit);
COPY(specialDVSplit);