|
Public Methods |
| void | load (cStringFile &file) |
| | Constructor for when loading from worldfile.
|
| void | save (FILE *file) |
| | cGuild (SERIAL guildstone) |
| | Contructor of cGuild.
|
| | ~cGuild () |
| | Destructor of cGuild.
|
| void | load () |
| SERIAL | getSerial () |
| | Get the guild serial/stone id.
|
| void | setName (std::string &newName) |
| | Set the new guild name.
|
| std::string | getName () |
| | Get the guild name.
|
| void | setAbbreviation (std::string &newAbbr) |
| | Set the new guild abbreviation.
|
| std::string | getAbbreviation () |
| | Get the guild abbreviation.
|
| const GUILD_TYPE | getGuildType () const |
| void | setGuildType (GUILD_TYPE newGuildType) |
| const SERIAL | cGuild::getGuildMaster () const |
| void | cGuild::setGuildMaster (SERIAL newGuildMaster) |
| void | cGuild::calculateFealty () |
| void | cGuild::showTitle (P_CHAR pc, P_CHAR pc2) |
| std::map< SERIAL, P_GUILD_MEMBER > | getMembers () |
| P_GUILD_MEMBER | addMember (P_CHAR pc) |
| | Add a new guild member.
|
| void | resignMember (P_CHAR pc) |
| | Remove a guild member.
|
| void | removeMember (SERIAL member) |
| P_GUILD_MEMBER | getMember (SERIAL member) |
| | Get the given guild member.
|
| int | getMemberPosition (SERIAL member) |
| | Get the index of the guild member in the guild.
|
| SERIAL | getMemberByIndex (int index) |
| | Get the guild member at the given index in the guild.
|
| int | getRecruitIndex (SERIAL member) |
| | Get the index of the guild member in the guild.
|
| SERIAL | getRecruitByIndex (int index) |
| | Get the guild member at the given index in the guild.
|
| std::vector< SERIAL > * | getGuildsInWar () |
| | Return array of guild wars.
|
| std::vector< SERIAL > * | getGuildsInPeace () |
| | Return array of guild peace offers.
|
| std::vector< SERIAL > * | getGuildsAllied () |
| | Return array of guild allies.
|
| void | addWar (SERIAL guild) |
| | Add a guild to declare war on.
|
| void | addPeace (SERIAL guild) |
| | Add a guild to make a peace offer to.
|
| void | addAlly (SERIAL guild) |
| | Add a guild as an ally to your guild.
|
| bool | hasWarWith (SERIAL guild) |
| bool | hasPeaceWith (SERIAL guild) |
| bool | hasAllianceWith (SERIAL guild) |
| void | cGuild::makePeace (SERIAL guild) |
| P_GUILD_RECRUIT | addNewRecruit (P_CHAR recruit, P_CHAR recruiter) |
| | Add a new recruit.
|
| void | refuseRecruit (P_CHAR pc) |
| | refuse a new recruit
|
| P_GUILD_RECRUIT | getRecruit (SERIAL recruit) |
| | Get the given guild recruit.
|
Public Attributes |
| std::map< SERIAL, P_GUILD_MEMBER > | members |
| | all members of this guild
|
| std::wstring | charter |
| | charter
|
| std::string | webpage |
| | web page
|
| std::map< SERIAL, P_GUILD_RECRUIT > | recruits |
| | all who want become member of this guild
|
Private Types |
| enum | GUILD_RANK {
RANK_GUILDMASTER,
RANK_GUILDVICE,
RANK_GUILDMEMBER,
RANK_GUILDRECRUIT,
ALL_RANKS
} |
Private Attributes |
| SERIAL | serial |
| | guild serial, is equal to the guildstone serial
|
| GUILD_TYPE | type |
| | guild type
|
| std::string | name |
| | guild name ( es Keeper of the Crimson Soul )
|
| std::string | abbreviation |
| | abbreviation ( es KCS )
|
| SERIAL_VECTOR | guildWar |
| SERIAL_VECTOR | guildPeace |
| SERIAL_VECTOR | guildAllies |
| SERIAL | guildMaster |