/* * Copyright 2007-2008 Ben Boeckel * * 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 . */ // Header include #include "Team.h" Sigbattle::Team::Team(Sigscript::SigmodWrapper* sigmod, QObject* 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; }