Crossfire Server, Branches 1.12  R18729
Settings Struct Reference

#include <global.h>

+ Collaboration diagram for Settings:

Data Fields

int allow_broken_converters
 
int allow_denied_spells_writing
 
const char * archetypes
 
int argc
 
char ** argv
 
int armor_max_enchant
 
int armor_speed_improvement
 
uint8 armor_speed_linear
 
uint8 armor_weight_linear
 
int armor_weight_reduction
 
uint8 balanced_stat_loss
 
uint8 casting_time
 
const char * confdir
 
uint8 create_home_portals
 
uint16 csport
 
uint8 daemonmode
 
const char * datadir
 
uint8 death_penalty_level
 
uint8 death_penalty_ratio
 
LogLevel debug
 
char dm_mail [MAX_BUF]
 
const char * dumparg
 
uint8 dumpvalues
 
char * emergency_mapname
 
uint16 emergency_x
 
uint16 emergency_y
 
uint8 explore_mode
 
uint8 fastclock
 
float item_power_factor
 
const char * localdir
 
int log_timestamp
 
char * log_timestamp_format
 
const char * logfilename
 
const char * mapdir
 
sint16 max_level
 
char meta_comment [MAX_BUF]
 
char meta_host [MAX_BUF]
 
unsigned int meta_on:1
 
uint16 meta_port
 
char meta_server [MAX_BUF]
 
char motd [MAX_BUF]
 
const char * news
 
uint8 no_player_stealing
 
uint8 not_permadeth
 
uint8 permanent_exp_ratio
 
uint8 personalized_blessings
 
sint16 pk_luck_penalty
 
sint64 pk_max_experience
 
int pk_max_experience_percent
 
const char * playerdir
 
uint8 real_wiz
 
uint8 recycle_tmp_maps
 
const char * regions
 
int reset_loc_time
 
uint8 resurrection
 
const char * rules
 
uint8 search_items
 
uint16 set_friendly_fire
 
uint8 set_title
 
uint8 simple_exp
 
uint8 spell_encumbrance
 
uint8 spell_failure_effects
 
uint8 spellpoint_level_depend
 
uint8 stat_loss_on_death
 
const char * templatedir
 
const char * tmpdir
 
const char * treasures
 
const char * uniquedir
 
char who_format [MAX_BUF]
 
char who_wiz_format [MAX_BUF]
 
uint32 worldmapstartx
 
uint32 worldmapstarty
 
uint32 worldmaptilesizex
 
uint32 worldmaptilesizey
 
uint32 worldmaptilesx
 
uint32 worldmaptilesy
 

Detailed Description

Server settings.

Definition at line 324 of file global.h.

Field Documentation

int Settings::allow_broken_converters

If set, converters will work even if price of generated item is higher than the price of converted items.

Definition at line 405 of file global.h.

Referenced by convert_item(), and load_settings().

int Settings::allow_denied_spells_writing

If set, players can write spells they can't cast.

Definition at line 404 of file global.h.

Referenced by load_settings(), and write_scroll().

const char* Settings::archetypes

Name of the archetypes file - libdir is prepended

Definition at line 338 of file global.h.

Referenced by cctk_init_std_archetypes(), init_environ(), load_archetypes(), and set_archetypes().

int Settings::argc

Parameters that were passed to the program

Definition at line 331 of file global.h.

Referenced by server_main().

char** Settings::argv

Only used by xio.c, so will go away at some time

Definition at line 332 of file global.h.

Referenced by server_main().

int Settings::armor_max_enchant

Maximum number of times an armor can be enchanted

Definition at line 394 of file global.h.

Referenced by improve_armour(), and load_settings().

int Settings::armor_speed_improvement

Speed improvement

Definition at line 397 of file global.h.

Referenced by improve_armour(), and load_settings().

uint8 Settings::armor_speed_linear

If 1, speed improvement is linear, else exponantiel

Definition at line 398 of file global.h.

Referenced by improve_armour(), and load_settings().

uint8 Settings::armor_weight_linear

If 1, weight reduction is linear, else exponantiel

Definition at line 396 of file global.h.

Referenced by improve_armour(), and load_settings().

int Settings::armor_weight_reduction

Weight reduction per enchantment

Definition at line 395 of file global.h.

Referenced by improve_armour(), and load_settings().

uint8 Settings::balanced_stat_loss

If true, Death stat depletion based on level etc

Definition at line 349 of file global.h.

Referenced by kill_player(), and load_settings().

uint8 Settings::casting_time

It takes awhile to cast a spell

Definition at line 358 of file global.h.

Referenced by attack_ob_simple(), cast_spell(), clear_object(), load_settings(), process_events(), process_players1(), and rangetostring().

const char* Settings::confdir
uint8 Settings::create_home_portals

If 1, can create portals in unique maps (apartments)

Definition at line 400 of file global.h.

Referenced by cast_create_town_portal(), and load_settings().

uint16 Settings::csport

Port for new client/server

Definition at line 326 of file global.h.

Referenced by init_server(), metaserver2_init(), and set_csport().

uint8 Settings::daemonmode

If true, detach and become daemon

Definition at line 330 of file global.h.

Referenced by init(), and set_daemon().

uint8 Settings::death_penalty_level

How many levels worth of exp may be lost on one death

Definition at line 348 of file global.h.

Referenced by apply_death_exp_penalty(), and load_settings().

uint8 Settings::death_penalty_ratio

Hhow much exp should be lost at death

Definition at line 347 of file global.h.

Referenced by apply_death_exp_penalty(), and load_settings().

LogLevel Settings::debug

Default debugging level

Definition at line 327 of file global.h.

Referenced by command_debug(), LOG(), main(), set_debug(), set_mondebug(), and unset_debug().

char Settings::dm_mail[MAX_BUF]

DM's Email address

Definition at line 369 of file global.h.

Referenced by init(), and load_settings().

const char* Settings::dumparg

Additional argument for some dump functions

Definition at line 329 of file global.h.

Referenced by init_beforeplay(), and set_dumpmont().

uint8 Settings::dumpvalues
char* Settings::emergency_mapname

Map to return players to in emergency

Definition at line 388 of file global.h.

Referenced by enter_exit(), enter_player_savebed(), free_globals(), init_emergency_mappath(), kill_player(), and save_player().

uint16 Settings::emergency_x

Definition at line 389 of file global.h.

Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().

uint16 Settings::emergency_y

Coordinates to use on that map

Definition at line 389 of file global.h.

Referenced by enter_exit(), enter_player_savebed(), init_emergency_mappath(), and kill_player().

uint8 Settings::explore_mode

Explore mode allowed?

Definition at line 361 of file global.h.

Referenced by command_explore(), and load_settings().

uint8 Settings::fastclock

If true, clock goes warp 9

Definition at line 386 of file global.h.

Referenced by block_until_new_connection(), and load_settings().

float Settings::item_power_factor

See note in setings file

Definition at line 392 of file global.h.

Referenced by apply_special(), improve_armour(), improve_weapon(), and load_settings().

int Settings::log_timestamp

If set, log will comport a timestamp.

Definition at line 407 of file global.h.

Referenced by load_settings(), and LOG().

char* Settings::log_timestamp_format

Format for timestap, if log_timestamp is set.

Definition at line 408 of file global.h.

Referenced by load_settings(), and LOG().

const char* Settings::logfilename

Logfile to use

Definition at line 325 of file global.h.

Referenced by cctk_setlog(), compile_info(), init_globals(), LOG(), main(), set_daemon(), and set_logfile().

const char* Settings::mapdir
sint16 Settings::max_level

This is read out of exp_table

Definition at line 391 of file global.h.

Referenced by dragon_eat_flesh(), dump_experience(), fix_object(), init_experience(), level_exp(), player_lvl_adj(), query_cost(), and send_exp_table().

char Settings::meta_comment[MAX_BUF]

Comment we send to the metaserver

Definition at line 378 of file global.h.

Referenced by load_settings(), and metaserver_update().

char Settings::meta_host[MAX_BUF]

Hostname of this host

Definition at line 376 of file global.h.

Referenced by load_settings(), metaserver_init(), and metaserver_update().

unsigned int Settings::meta_on

True if we should send updates

Definition at line 374 of file global.h.

Referenced by load_settings(), and metaserver_init().

uint16 Settings::meta_port

Port number to use for updates

Definition at line 377 of file global.h.

Referenced by load_settings(), and metaserver_init().

char Settings::meta_server[MAX_BUF]

Hostname/ip addr of the metaserver

Definition at line 375 of file global.h.

Referenced by load_settings(), and metaserver_init().

char Settings::motd[MAX_BUF]

Name of the motd file

Definition at line 366 of file global.h.

Referenced by display_motd(), and load_settings().

const char* Settings::news

Name of news file

Definition at line 368 of file global.h.

Referenced by send_news().

uint8 Settings::no_player_stealing

If 1, can not steal from other players

Definition at line 399 of file global.h.

Referenced by attempt_steal(), and load_settings().

uint8 Settings::not_permadeth

If true, death is non-permament

Definition at line 350 of file global.h.

Referenced by kill_player(), and load_settings().

uint8 Settings::permanent_exp_ratio

How much exp should be 'permenant' and unable to be lost

Definition at line 346 of file global.h.

Referenced by add_player_exp(), calc_perm_exp(), check_exp_loss(), load_settings(), and show_skills().

uint8 Settings::personalized_blessings

If 1, blessed weapons get an owner and a willpower value

Definition at line 401 of file global.h.

Referenced by apply_special(), god_enchants_weapon(), and load_settings().

sint16 Settings::pk_luck_penalty

Amount by which player luck is reduced if they PK

Definition at line 345 of file global.h.

Referenced by kill_object(), and load_settings().

sint64 Settings::pk_max_experience

Maximum experience one can get for PKing. Ignore if negative.

Definition at line 402 of file global.h.

Referenced by kill_object(), and load_settings().

int Settings::pk_max_experience_percent

Percentage of experience of victim the killer gets.

Definition at line 403 of file global.h.

Referenced by kill_object(), and load_settings().

uint8 Settings::real_wiz
uint8 Settings::recycle_tmp_maps

Re-use tmp maps.

Definition at line 360 of file global.h.

Referenced by clean_tmp_files(), load_settings(), and swap_map().

const char* Settings::regions

Name of the regions file - libdir is prepended

Definition at line 339 of file global.h.

Referenced by init_regions(), and set_regions().

int Settings::reset_loc_time

Number of seconds to put player back at home

Definition at line 352 of file global.h.

Referenced by check_login().

uint8 Settings::resurrection

Ressurection possible w/ permadeth on

Definition at line 354 of file global.h.

Referenced by kill_player(), and load_settings().

const char* Settings::rules

Name of rules file

Definition at line 367 of file global.h.

Referenced by send_rules().

uint8 Settings::search_items

Search_items command

Definition at line 355 of file global.h.

Referenced by check_login(), check_pick(), command_search_items(), fix_object(), and load_settings().

uint16 Settings::set_friendly_fire

Percent of damage done by peaceful player vs player damage

Definition at line 363 of file global.h.

Referenced by hit_player(), and load_settings().

uint8 Settings::set_title

Players can set thier title

Definition at line 353 of file global.h.

Referenced by check_login(), command_title(), key_confirm_quit(), kill_player(), load_settings(), and save_player().

uint8 Settings::simple_exp

If true, use the simple experience system

Definition at line 351 of file global.h.

Referenced by calc_skill_exp(), kill_object(), and load_settings().

uint8 Settings::spell_encumbrance

Encumbrance effects spells

Definition at line 356 of file global.h.

Referenced by fix_object(), and load_settings().

uint8 Settings::spell_failure_effects

Nasty backlash to spell failures

Definition at line 357 of file global.h.

Referenced by cast_spell(), load_settings(), scroll_failure(), scroll_type_apply(), spell_failure(), and spellbook_type_apply().

uint8 Settings::spellpoint_level_depend

Spell costs go up with level

Definition at line 362 of file global.h.

Referenced by load_settings(), and SP_level_spellpoint_cost().

uint8 Settings::stat_loss_on_death

If true, chars lose a random stat when they die

Definition at line 344 of file global.h.

Referenced by kill_player(), and load_settings().

const char* Settings::templatedir

Directory for the template map

Definition at line 342 of file global.h.

Referenced by create_template_pathname(), init_environ(), and set_templatedir().

const char* Settings::tmpdir

Directory to use for temporary files

Definition at line 343 of file global.h.

Referenced by cfapi_system_directory(), compile_info(), init_environ(), save_map(), save_player(), and set_tmpdir().

const char* Settings::treasures

Location of the treasures file.

Definition at line 340 of file global.h.

Referenced by cctk_init_std_archetypes(), init_environ(), load_treasures(), and set_treasures().

const char* Settings::uniquedir

Directory for the unique items

Definition at line 341 of file global.h.

Referenced by cfapi_system_directory(), compile_info(), create_items_path(), init_environ(), and set_uniquedir().

char Settings::who_format[MAX_BUF]

The format that the who command should use

Definition at line 364 of file global.h.

Referenced by list_players(), and load_settings().

char Settings::who_wiz_format[MAX_BUF]

The format that the who command should use when called by a dm

Definition at line 365 of file global.h.

Referenced by list_players(), and load_settings().

uint32 Settings::worldmapstartx

Starting x tile for the worldmap

Definition at line 380 of file global.h.

Referenced by command_loadtest(), and load_settings().

uint32 Settings::worldmapstarty

Starting y tile for the worldmap

Definition at line 381 of file global.h.

Referenced by command_loadtest(), and load_settings().

uint32 Settings::worldmaptilesizex

Number of squares wide in a wm tile

Definition at line 384 of file global.h.

Referenced by load_settings().

uint32 Settings::worldmaptilesizey

Number of squares high in a wm tile

Definition at line 385 of file global.h.

Referenced by load_settings().

uint32 Settings::worldmaptilesx

Number of tiles wide the worldmap is

Definition at line 382 of file global.h.

Referenced by command_loadtest(), and load_settings().

uint32 Settings::worldmaptilesy

Number of tiles high the worldmap is

Definition at line 383 of file global.h.

Referenced by command_loadtest(), and load_settings().


The documentation for this struct was generated from the following file: