From The Mana World
m (Status_red)
Line 1: Line 1:
{{Status_red}}
{{Status_red}}
== Programming Classes ==


The guild related classes (C++ Classes) are:
== Guilds Technical Info ==
=== Classes ===
I propose to only have a guild and guildmanager class. Each player has a guild, and the server stores all the created guilds in the guildmanager.


* Guild Collection
==== Guild ====
* Guild
This will contain (at least):
* Guild Member
*Name of the guild
*Guild id
*Guild Leader
*More to come soon


I will be adding things as the system evolves.  I will need to synchronize this system with the rest of the game, primarily the network, server and user interface systems.  If you're running any of these systems and have a request, please e-mail me.
==== Guild Manager ====
This will be used for:
*adding and removing guilds
*adding invited users into a guild
*inviting users into a guild
*More to come soon


Functions listed will not include all get and set functions or constructors.
== How joining a guild works ==
 
When a user creates a guild, he has the option to invite a user (possibly by right clicking user and selecting invite into guild).
=== Guild Collection ===
Only the guild leader can invite users into the guild.
 
If the user accepts the invitation, the user becomes a member of the guild.
Functions:
There must be an outstanding invitation before a user can accept or else a hacked client could join a guild without being invited.
 
* addGuild( Guild* )
 
=== Guild ===
 
Functions:
 
* addMember( Member* ) members will enter at the lowest rank.
* removeMember( memberID )
* changeMemberRank( change_amount )
 
=== Guild Member ===
 
Variables:
 
* memberID
* memberRank
* memberPath is a subgroup to the guild for specialization
* memberPermissions
 
Functions:
 
* changeRank( target_rank ) .

Revision as of 20:17, 1 March 2007

This article is currently only a proposal

The features or design guidelines described in this article are only a proposal made by one or some persons. It has not been evaluated or accepted by the core development team yet. Feel free to add your personal opinion about them or make counter proposals.

Guilds Technical Info

Classes

I propose to only have a guild and guildmanager class. Each player has a guild, and the server stores all the created guilds in the guildmanager.

Guild

This will contain (at least):

  • Name of the guild
  • Guild id
  • Guild Leader
  • More to come soon

Guild Manager

This will be used for:

  • adding and removing guilds
  • adding invited users into a guild
  • inviting users into a guild
  • More to come soon

How joining a guild works

When a user creates a guild, he has the option to invite a user (possibly by right clicking user and selecting invite into guild). Only the guild leader can invite users into the guild. If the user accepts the invitation, the user becomes a member of the guild. There must be an outstanding invitation before a user can accept or else a hacked client could join a guild without being invited.