Some refactoring of code. and some cleanups
This commit is contained in:
@@ -54,7 +54,7 @@ namespace Game.Entities
|
||||
Log.outDebug(LogFilter.Unit, "Deleting member GUID: {0} from group {1}", group.GetId(), member.GetSpawnId());
|
||||
group.RemoveMember(member);
|
||||
|
||||
if (group.isEmpty())
|
||||
if (group.IsEmpty())
|
||||
{
|
||||
Map map = member.GetMap();
|
||||
if (!map)
|
||||
@@ -264,10 +264,10 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
public Creature getLeader() { return m_leader; }
|
||||
public Creature GetLeader() { return m_leader; }
|
||||
public uint GetId() { return m_groupID; }
|
||||
public bool isEmpty() { return m_members.Empty(); }
|
||||
public bool isFormed() { return m_Formed; }
|
||||
public bool IsEmpty() { return m_members.Empty(); }
|
||||
public bool IsFormed() { return m_Formed; }
|
||||
|
||||
Creature m_leader;
|
||||
Dictionary<Creature, FormationInfo> m_members = new Dictionary<Creature, FormationInfo>();
|
||||
|
||||
Reference in New Issue
Block a user