Quantcast

GroupTools.IsGroupFull updated

F16Gaming [10-23-11 - 22:37]
GroupTools.IsGroupFull updated
Filename
GroupTools.lua
docs/files/GroupTools.html
diff --git a/GroupTools.lua b/GroupTools.lua
index 490fee6..698f5ae 100644
--- a/GroupTools.lua
+++ b/GroupTools.lua
@@ -20,11 +20,16 @@
 local C = Command

 --- Table containing all GroupTools methods.
--- This is referenced as "GT" in GroupTools.lua.
+-- This is referenced "GT" in GroupTools.lua.
 -- @name Command.GroupTools
 -- @class table
+-- @field PartyMax Defined max value for party members.
+-- @field RaidMax Defined max value for raid members.
 --
-C.GroupTools = {}
+C.GroupTools = {
+	PartyMax = 5,
+	RaidMax = 40
+}

 local GT = C.GroupTools

@@ -65,12 +70,12 @@ end
 --
 function GT:IsGroupFull()
 	local num = 0
-	local max = 40
+	local max = self.RaidMax
 	if self:IsRaid() then
 		num = GetNumRaidMembers()
 	elseif self:IsGroup() then
 		num = GetNumPartyMembers()
-		max = 5
+		max = self.PartyMax
 	end
 	if num >= max then return true end
 	return false
diff --git a/docs/files/GroupTools.html b/docs/files/GroupTools.html
index bd33ccb..9b20a80 100644
--- a/docs/files/GroupTools.html
+++ b/docs/files/GroupTools.html
@@ -151,6 +151,16 @@



+<h2>Tables</h2>
+<table class="table_list">
+
+	<tr>
+	<td class="name" nowrap><a href="#Command.GroupTools">Command.GroupTools</a></td>
+	<td class="summary">Table containing all GroupTools methods.</td>
+	</tr>
+
+</table>
+


 <br/>
@@ -363,6 +373,32 @@ Check if the unit is raid leader or assistant.



+<h2><a name="tables"></a>Tables</h2>
+<dl class="table">
+
+<dt><a name="Command.GroupTools"></a><strong>Command.GroupTools</strong></dt>
+<dd>Table containing all GroupTools methods. This is referenced "GT" in GroupTools.lua.<br /><br />
+
+
+<h3>Fields:</h3>
+<ul>
+
+	<li>
+	  <code><em>PartyMax</em></code>: Defined max value for party members.
+	</li>
+
+	<li>
+	  <code><em>RaidMax</em></code>: Defined max value for raid members.
+	</li>
+
+</ul>
+
+
+</dd>
+
+
+</dl>
+