Pol  Rev 533
Guild Class Reference

#include <guildmod.h>

+ Inheritance diagram for Guild:
+ Collaboration diagram for Guild:

List of all members.

Public Member Functions

 Guild (ConfigElem &elem)
 Guild (unsigned int guildid)
void addMember (unsigned int serial)
void disband ()
bool disbanded () const
unsigned int guildid () const
bool hasAllies () const
bool hasAlly (const Guild *g2) const
bool hasEnemies () const
bool hasEnemy (const Guild *g2) const
bool hasMembers () const
void printOn (std::ostream &os) const
void registerWithMembers ()
void update_online_members ()
void update_online_members_remove (Character *chr)

Private Attributes

SerialSet _allyguild_serials
bool _disbanded
SerialSet _enemyguild_serials
unsigned int _guildid
SerialSet _member_serials
PropertyList _proplist

Friends

class EGuildRefObjImp

Detailed Description

Definition at line 27 of file guildmod.h.


Constructor & Destructor Documentation

Guild::Guild ( ConfigElem elem) [explicit]

Definition at line 121 of file guildmod.cpp.

References _proplist, and PropertyList::readProperties().

+ Here is the call graph for this function:

Guild::Guild ( unsigned int  guildid) [explicit]

Definition at line 132 of file guildmod.cpp.

References _guildid, and nextguildid.


Member Function Documentation

void Guild::addMember ( unsigned int  serial)

Definition at line 254 of file guildmod.cpp.

References _member_serials.

Referenced by FindOrCreateGuild().

+ Here is the caller graph for this function:

void Guild::disband ( )

Definition at line 212 of file guildmod.cpp.

References _disbanded.

Referenced by GuildExecutorModule::mf_DestroyGuild().

+ Here is the caller graph for this function:

bool Guild::disbanded ( ) const

Definition at line 207 of file guildmod.cpp.

References _disbanded.

Referenced by getGuildParam().

+ Here is the caller graph for this function:

unsigned int Guild::guildid ( ) const
bool Guild::hasAllies ( ) const

Definition at line 222 of file guildmod.cpp.

References _allyguild_serials.

Referenced by GuildExecutorModule::mf_DestroyGuild().

+ Here is the caller graph for this function:

bool Guild::hasAlly ( const Guild g2) const

Definition at line 226 of file guildmod.cpp.

References _allyguild_serials, and guildid().

Referenced by AreAllies().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Guild::hasEnemies ( ) const

Definition at line 231 of file guildmod.cpp.

References _enemyguild_serials.

Referenced by GuildExecutorModule::mf_DestroyGuild().

+ Here is the caller graph for this function:

bool Guild::hasEnemy ( const Guild g2) const

Definition at line 235 of file guildmod.cpp.

References _enemyguild_serials, and guildid().

Referenced by AreEnemies().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool Guild::hasMembers ( ) const

Definition at line 217 of file guildmod.cpp.

References _member_serials.

Referenced by GuildExecutorModule::mf_DestroyGuild().

+ Here is the caller graph for this function:

void Guild::printOn ( std::ostream &  os) const

Definition at line 241 of file guildmod.cpp.

References _allyguild_serials, _enemyguild_serials, _guildid, _member_serials, _proplist, pf_endl, PropertyList::printProperties(), and SerialSet::writeOn().

Referenced by write_guilds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 144 of file guildmod.cpp.

References _member_serials, Character::guild(), and system_find_mobile().

Referenced by register_guilds().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 164 of file guildmod.cpp.

References _member_serials, Character::client, send_create_mobile_to_nearby_cansee(), send_move(), send_remove_character_to_nearby_cansee(), and system_find_mobile().

Referenced by EGuildRefObjImp::call_method_id().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Definition at line 192 of file guildmod.cpp.

References Character::client, send_create_mobile_to_nearby_cansee(), send_move(), and send_remove_character_to_nearby_cansee().

+ Here is the call graph for this function:


Friends And Related Function Documentation

friend class EGuildRefObjImp [friend]

Definition at line 52 of file guildmod.h.


Member Data Documentation

bool Guild::_disbanded [private]

Definition at line 60 of file guildmod.h.

Referenced by disband(), and disbanded().

unsigned int Guild::_guildid [private]

Definition at line 55 of file guildmod.h.

Referenced by Guild(), guildid(), and printOn().

Definition at line 59 of file guildmod.h.

Referenced by Guild(), and printOn().


The documentation for this class was generated from the following files: