summaryrefslogtreecommitdiffstats
path: root/sigencore/Containment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigencore/Containment.cpp')
-rw-r--r--sigencore/Containment.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/sigencore/Containment.cpp b/sigencore/Containment.cpp
index 23047e91..a89075bf 100644
--- a/sigencore/Containment.cpp
+++ b/sigencore/Containment.cpp
@@ -31,20 +31,25 @@ Sigencore::Containment::Containment(Sigscript::SigmodWrapper* sigmod, Sigscript:
{
}
+Sigencore::Containment::~Containment()
+{
+}
+
QList<Sigencore::TeamMember*> Sigencore::Containment::members() const
{
return m_members;
}
+int Sigencore::Containment::numMembers() const
+{
+ return m_members.size();
+}
+
bool Sigencore::Containment::addMember(TeamMember* member)
{
- if (m_members.size() < sigmod()->rules()->maxParty())
- {
- m_members.append(member);
-// member->reparent(this);
- return true;
- }
- return false;
+ member->setContainment(this);
+ m_members.append(member);
+ return true;
}
Sigencore::TeamMember* Sigencore::Containment::findMember(const QUuid& id) const