guild_base.cpp & .h include header cleanup

This commit is contained in:
Akkadius 2014-12-15 21:59:23 -06:00
parent 0c21f56ff3
commit 20200fd028
2 changed files with 118 additions and 113 deletions

View File

@ -16,7 +16,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "debug.h"
#include "guild_base.h"
#include "database.h"
#include "logsys.h"

View File

@ -3,12 +3,12 @@
#include "guilds.h"
#include <map>
#include <string>
#include <vector>
class Database;
class CharGuildInfo {
class CharGuildInfo
{
public:
//fields from `characer_`
uint32 char_id;
@ -30,13 +30,17 @@ public:
};
//this object holds guild functionality shared between world and zone.
class BaseGuildManager {
class BaseGuildManager
{
public:
BaseGuildManager();
virtual ~BaseGuildManager();
//this must be called before doing anything else with this object
void SetDatabase(Database *db) { m_db = db; }
void SetDatabase(Database *db)
{
m_db = db;
}
bool LoadGuilds();
bool RefreshGuild(uint32 guild_id);
@ -114,13 +118,15 @@ protected:
bool LocalDeleteGuild(uint32 guild_id);
class RankInfo {
class RankInfo
{
public:
RankInfo();
std::string name;
bool permissions[_MaxGuildAction];
};
class GuildInfo {
class GuildInfo
{
public:
GuildInfo();
std::string name;