|
|
[Package Index | Mudlib Index | Effect Index]
File /std/room/inherit/newspaper_office.c
An office from which a player run newspaper can be run.Written by Obilix Change history
- Pinkfish Fri Apr 27 12:08:29 PDT 2001
Turned into an inherit and made to use a newspaper handler for
distributing the actual text.
Includes
This class includes the following files /include/board.h, /include/room/newspaper.h, /include/move_failures.h, /include/shops/bank.h, /include/housing.h, /include/nroff.h, /include/player_handler.h, /include/money.h and /include/mail.hClass Index
Method index
- add_editor(string)
This method adds a new editor to the paper.
- add_reporter(string)
This method adds a new reporter to the paper.
- add_setter(string)
This method adds a new setter to the paper.
- add_sponsor(string)
This method adds a new sponsor to the paper.
- board_access_check(int, string, object, string)
This method is here to control access to a board if one is requested.
- delete_article(class our_article)
This method deletes any bitsof the article off the disk.
- do_advert_list()
- do_category_add(string)
- do_category_cost(string, string)
- do_category_cost_per_ten_chars(string, string)
- do_category_list()
- do_category_open(string, string)
- do_category_remove(string)
- do_everyone_status()
This is the status that everyone can see, not just the employees.
- do_lock(int)
- do_submit_add(string)
- is_editor(string)
This method checks to see if the specified person is an editor for
the paper or not.
- is_locked(class article)
This method checks to see if the specified article is locked
or not.
- is_owner(string)
This method checks to see if the specified person is an owner of
the paper or not.
- is_postponed(class article)
This method checks to see if the specified article is postponed
or not.
- is_reporter(string)
This method checks to see if the specified person is an reporter for
the paper or not.
- is_setter(string)
This method checks to see if the specified person is an setter for
the paper or not.
- is_sponsor(string)
This method checks to see if the specified person is a sponsor for
the paper or not.
- load_article_text(class our_article)
This method loads the text of an article.
- load_article_text_by_file(string)
This method is used by the web, it loads the article by the file name.
- load_me()
Loads the data in the file.
- move_article(int, string)
This method moves an article up or down in the current article list.
- ownership_change(string, string)
This method is called by the housing system when the ownership changes.
- query_ads()
- query_all_articles()
This method returns the 'article' class bits of the articles.
- query_all_editors()
This method returns all the current editors of the magazine.
- query_all_payees()
This method returns all the current payees of the magazine.
- query_all_reporters()
This method returns all the current reporters of the magazine.
- query_all_setters()
This method returns all the current setters of the magazine.
- query_all_sponsors()
This method returns all the current sponsors of the magazine.
- query_article(string)
This method finds an article based on a string.
- query_article_index(string)
This method returns the index of the article in the article array.
- query_article_log_file_name()
The file name of the log file for article events.
- query_articles()
- query_bank_branch()
This method returns the bank branch to use for depositing money for
editions.
- query_category(string)
This method tries to find a category based on some fuzzy matching.
- query_current_edition()
This method returns the current edition of the newspaper.
- query_log_file_name()
The file name of the log file for events.
- query_next_article_file_name()
This returns the next number to use for an article.
- query_owner()
This method returns the current owner of the paper.
- query_paper_name()
This method returns the name of the paper.
- query_proxy()
This method returns the proxy for this room.
- query_the_paper_name()
This method returns the name of the paper with a 'the' in front.
- query_total_profit(int)
This method figures out the total profit from the paper.
- remove_editor(string)
This method removes a editor from the paper.
- remove_reporter(string)
This method removes a reporter from the paper.
- remove_setter(string)
This method removes a setter from the paper.
- remove_sponsor(string)
- save_article_text(class our_article, string)
This method saves an article.
- save_article_text_by_file(string, string)
This method is used by the web, it loads the article by the file name.
- save_me()
Saves the data in the file.
- set_article_title_by_file(string, string)
This method is used by the web, it loads the article by the file name.
- set_bank_branch(string)
This method sets the bank branch to use for depositing money when
editions are made.
- set_owner(string)
This method sets the current owner of the paper.
- set_paper_name(string)
This method sets the name of the paper.
- set_proxy(string)
This method sets up a proxy for the room.
- set_save_directory(string)
This method sets the directory we are to use for all the
temporary files and data.
- update_commands(string)
This method moves the player in and out of the room to fix up their
commands.
Public Functions
These are functions that everyone can access.
.
void add_editor(string word)
This method adds a new editor to the paper.
- Parameters:
word - the new editor to add
void add_reporter(string word)
This method adds a new reporter to the paper.
|