[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/inherit/club_inherit.c

This is the handler for all things clubby, a club being a group of players. Each club must have a unique name. It also handles elections for various club positions.

This is broken up into this bit because LPC deals with classes and inheritance in extremely odd ways.

Written by Pinkfish

Started Sun Sep 27 03:35:42 EDT 1998

Inherits

This class inherits the following classes /obj/handlers/inherit/club_discuss.c

Includes

This class includes the following files /include/clubs.h, /include/player_handler.h, /include/cron_handler.h, /include/playtesters.h, /include/mail.h, /include/top_ten_tables.h, /include/player.h, /include/library.h, /include/broadcaster.h and /include/am_time.h

Class Index

Method index

Public Functions

These are functions that everyone can access.

check_clubs
void check_clubs(int startup)

This method checks all the clubs to make sure they are currently valid and takes money out of the accounts of those that need to pay. It will notify those whose accounts are deliquent.
check_clubs_cron
void check_clubs_cron(int startup)
remove_all_club_relations
void remove_all_club_relations(string player)

This method will delete the player from all the clubs and things they are currently associated with.

Parameters:
player - the playet to chweck for the clubs


Protected Functions

These are functions that only objects inheriting the class can access.

check_club_members
void check_club_members(string club_name,
                        string * members,
                        class top_ten_tables top_info)

This method checks the members of the club and makes sure they have not been up to anything naughty, like getting deleted. It also updates the top ten information on the top ten handler.

Parameters:
club_name - the name of the club
members - the members left to check
top_info - the top ten information


check_extra_information
void check_extra_information(string name,
                             string member,
                             int startup)

This method checks the extra information for the club. Please note this does *not* save the information. You need to do this yourself.

Parameters:
name - the name of the club to check

See also:
check_clubs() and remove_member()


check_specific_club
void check_specific_club(string club_name,
                         int extra_space,
                         int startup)
check_specific_clubs
void check_specific_clubs(int startup,
                          int pos)

Classes

These are nice data types for dealing with... Data!