 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vincent Guichard Guest
|
Posted: Tue Nov 23, 2004 11:26 am Post subject: guilde include |
|
|
/*
** Fichier d'include pour la gestion des membres de la guilde
** Par Athanagorn
*/
// Constantes de rang
const int GD_RANK_NOT_A_MEMBER = 0;
const int GD_RANK_APPLICANT = 1; // 10% réduction dans les magasins
// pas de coffre perso
const int GD_RANK_BEGINNER = 2; // 15% réduction dans les magasins
// coffre perso limité à 10 objets
const int GD_RANK_COMMON_MEMBER = 3; // 20% réduction dans les magasins
// coffre perso limité à 15 objets
const int GD_RANK_HIGH_MEMBER = 4; // 25% réduction dans les magasins
// coffre perso limité à 25 objets
const int GD_RANK_TOP_MEMBER = 5; // 50% réduction dans les magasins
// coffre perso illimité
// Constantes de status
const int GD_STATUS_NONE = 0;
const int GD_STATUS_WANTED = 1; // -> Prison
const int GD_STATUS_BANNED = 2; // -> Morgue
string CreateID(object oPC)
{
return GetPCPublicCDKey(oPC) + GetName(oPC);
}
// AddGuildMember(...)
// Ajoute oPC à la liste des membres de la guilde.
// oGuild est la zone (Area) de la guilde.
void AddGuildMember(object oPC, object oGuild, int nRank = GD_RANK_APPLICANT);
// GetGuildMemberGrade(...)
// Retourne le grade
// RemoveGuildMember(...)
// Supprime oPC de la liste des membres de la guilde.
// oGuild est la zone (Area) de la guilde.
void RemoveGuildMember(object oPC, object oGuild);
// ListGuildMembers(...)
// Liste tous les membres de la guilde.
// oGuild est la zone (Area) de la guilde.
string ListGuildMembers(object oGuild);
// IsGuildMember(...)
// Retourne TRUE si oPC est un membre de la guilde, FALSE sinon.
// Les MD sont membres de toutes les guildes.
// oGuild est la zone (Area) de la guilde.
// si bWanted est a TRUE, le test tient compte du flag "Wanted" ou "Banned"
int IsGuildMember(object oPC, object oGuild, int bWanted = TRUE);
// GetGuildMemberNumber(...)
// Retourne le numero de membre de oPC.
// Retourne 0 si le joueur n'est pas membre.
// oGuild est la zone (Area) de la guilde.
int GetGuildMemberNumber(object oPC, object oGuild);
/* Pour tests de compilations */
void main()
{
}/**/
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|