diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-20 23:51:22 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-20 23:51:22 -0500 |
commit | 7e91e7b2e7285adf3198a1be68d63bc6411e2544 (patch) | |
tree | 28381d256a59c31f355bc6da29a395f647cb0a87 /sigscript | |
parent | b0a67f0bb797daa8303b505fb9150da222717d40 (diff) | |
download | sigen-7e91e7b2e7285adf3198a1be68d63bc6411e2544.tar.gz sigen-7e91e7b2e7285adf3198a1be68d63bc6411e2544.tar.xz sigen-7e91e7b2e7285adf3198a1be68d63bc6411e2544.zip |
Cleaned up Sigmod widget and now a startScript instead of warp
Diffstat (limited to 'sigscript')
-rw-r--r-- | sigscript/SigmodWrapper.cpp | 6 | ||||
-rw-r--r-- | sigscript/SigmodWrapper.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sigscript/SigmodWrapper.cpp b/sigscript/SigmodWrapper.cpp index 88969686..9290a728 100644 --- a/sigscript/SigmodWrapper.cpp +++ b/sigscript/SigmodWrapper.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -229,9 +229,9 @@ bool Sigscript::SigmodWrapper::singlePlayer() const return m_sigmod->singlePlayer(); } -Sigscript::MapWarpWrapper* Sigscript::SigmodWrapper::startWarp() +Sigcore::Script Sigscript::SigmodWrapper::startScript() { - return map(m_sigmod->startMap())->warp(m_sigmod->startWarp()); + return m_sigmod->startScript(); } Sigcore::Fraction Sigscript::SigmodWrapper::effectiveness(const TypeWrapper* attacker, const TypeWrapper* defender) const diff --git a/sigscript/SigmodWrapper.h b/sigscript/SigmodWrapper.h index 04cb66be..92d098af 100644 --- a/sigscript/SigmodWrapper.h +++ b/sigscript/SigmodWrapper.h @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -94,7 +94,7 @@ class SIGSCRIPT_EXPORT SigmodWrapper : public ObjectWrapper Q_SCRIPTABLE QString version() const; Q_SCRIPTABLE QString description() const; Q_SCRIPTABLE bool singlePlayer() const; - Q_SCRIPTABLE MapWarpWrapper* startWarp(); + Q_SCRIPTABLE Sigcore::Script startScript(); Q_SCRIPTABLE Sigcore::Fraction effectiveness(const TypeWrapper* attacker, const TypeWrapper* defender) const; Q_SCRIPTABLE RulesWrapper* rules(); |