summaryrefslogtreecommitdiffstats
path: root/sigencore/Team.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-27 22:07:08 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-27 22:07:08 -0500
commite04c4922a13ed10e9d6b086eacc299f0c5a05984 (patch)
tree907e109278adbea9ae100feb61e020174033a3e5 /sigencore/Team.cpp
parentd111ea6a931a7120631f6e88e9414cbdb851e0e8 (diff)
downloadsigen-e04c4922a13ed10e9d6b086eacc299f0c5a05984.tar.gz
sigen-e04c4922a13ed10e9d6b086eacc299f0c5a05984.tar.xz
sigen-e04c4922a13ed10e9d6b086eacc299f0c5a05984.zip
Begin migration of core classes to libsigencore
Diffstat (limited to 'sigencore/Team.cpp')
-rw-r--r--sigencore/Team.cpp73
1 files changed, 73 insertions, 0 deletions
diff --git a/sigencore/Team.cpp b/sigencore/Team.cpp
new file mode 100644
index 00000000..bfc89c92
--- /dev/null
+++ b/sigencore/Team.cpp
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2007-2008 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Header include
+#include "Team.h"
+
+Sigbattle::Team::Team(Sigscript::SigmodWrapper* sigmod, Sigscript::Config* parent) :
+ Containment(sigmod, parent)
+{
+ // TODO: construct
+}
+
+// Team::Team(const PokeMod::Sigmod& par) :
+// active(0),
+// parent(par)
+// {
+// }
+//
+// void Team::AddItem(const unsigned i, const unsigned amt)
+// {
+// if (amt)
+// items[i] = amt;
+// }
+//
+// void Team::UseItem(const unsigned i)
+// {
+// if (items.contains(i) && (items[i] != UINT_MAX))
+// {
+// --items[i];
+// if (!items[i])
+// items.remove(i);
+// }
+// }
+//
+// void Team::AddMember(Member& p)
+// {
+// m_member.append(&p);
+// }
+//
+// void Team::SwapMember(const unsigned a, const unsigned b)
+// {
+// if ((a < m_member.size()) && (b < m_member.size()))
+// {
+// Member* p = m_member[a];
+// m_member[a] = m_member[b];
+// m_member[b] = p;
+// }
+// }
+//
+// bool Team::SetActiveMember(const unsigned a)
+// {
+// if ((a < m_member.size()) && m_member[a]->CanFight())
+// active = a;
+// }
+
+bool Sigbattle::Team::isMutable() const
+{
+ return true;
+}