File params.c

NAME: params
DESCRIPTION This procedure prints out the game parameters, either for a 'list' command or after a change has been made to one or more parameters.
REVISION HISTORY DATE NAME REASON ----------- ------------ --------------------------------------------------- ?? ??? 1987 K.Lowe Original development. ?? Apr 1994 T.Ruelle Add amateur level; use printlevel() to print level. 23 May 1994 C.Marcus,Jr. Use print_params() to print lines (to allow for long lines, if many flags set); clarify text for press flags. 22 Dec 1994 L.Richardson Added the Index parameter display.
INTERFACE DEFINITION Calling Sequence: params(fp);
Inputs: fp := File pointer to which parameters are to be written
Outputs: Parameters written to specified file
ALGORITHM Write move phase processing information to file. Write retreat phase processing information to file. Write adjustment phase processing information to file. Write general information to file. Write variant information to file. Write flag information to file. Write press information to file. Write cataloging information and victory condition to file.

References Variables: accessesparams.c
  levelsparams.c


Included Files


Global Variable predict

int predict
Visible in:  assign.c
   common.c
   dip.h
   diplog.c
   functions.h
   global.c
   jm.c
   ma_build.c
   ma_build_basic.c
   ma_expenses.c
   ma_famplag.c
   ma_movement.c
   ma_porder.c
   ma_retreat.c
   ma_stats.c
   machlib.c
   mfprintf.c
   ml_press.c
   ml_short.c
   ml_signon.h
   params.c
   po_condition.c
   po_errmsg.c
   po_get.c
   po_mastrpt.c
   st_bid.c
   st_build.c
   st_movement.c
   st_porder.c
   st_retreat.c
   st_setup.c
   st_status.c
   tm_xpress.c
   variant.c
Used in: bidout()st_bid.c
  buildout()st_build.c
  expout()ma_expenses.c
  ma_buildout()ma_build.c
  ma_moveout()ma_movement.c
  ma_retreatout()ma_retreat.c
  moveout()st_movement.c
  retreatout()st_retreat.c

Global Variable signedon

int signedon
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: params()params.c

Global Variable i_am_really_master

int i_am_really_master
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable i_am_really_jk

int i_am_really_jk
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable starting

int starting
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable player

int player
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: delete_entry()tm_xpress.c
  list_entries()tm_xpress.c
  mail_press()ml_press.c
  new_diary_entry()tm_xpress.c
  params()params.c
  process_diary()tm_xpress.c
  process_ppress()tm_xpress.c
  read_entry()tm_xpress.c

Global Variable listflg

int listflg
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broadcast

int broadcast
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  ownership()st_porder.c
  victory()ma_porder.c

Global Variable broadcast_master_only

int broadcast_master_only
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_diary()tm_xpress.c
  process_ppress()tm_xpress.c

Global Variable broad_part

int broad_part
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broadcast_absence_adjust

int broadcast_absence_adjust
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broad_list

char broad_list[36+1]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_allbut

int broad_allbut
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_read

int broad_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_skip

int broad_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_signon

int broad_signon
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broad_params

int broad_params
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: params()params.c

Global Variable read_phase

int read_phase
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable moreaddr

int moreaddr
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable create

int create
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable msg_header_done

int msg_header_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable baddr

char baddr[80]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable raddr

char raddr[80]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  process_ppress()tm_xpress.c

Global Variable xaddr

char* xaddr
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable someone

char* someone
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable somepower

char* somepower
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable name

char name[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable master_press

int master_press
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable master_only_press

int master_only_press
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable ppress_read

int ppress_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable ppress_skip

int ppress_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable ppress_done

int ppress_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable diary_read

int diary_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c

Global Variable diary_skip

int diary_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c
  process_diary()tm_xpress.c

Global Variable diary_done

int diary_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable Mfile

char Mfile[40]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable Tfile

char Tfile[40]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_bfp

FILE* mail_bfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  victory()ma_porder.c

Global Variable mail_mbfp

FILE* mail_mbfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  mfprintf()mfprintf.c
  process_ppress()tm_xpress.c

Global Variable mail_mfp

FILE* mail_mfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_nfp

FILE* mail_nfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ofp

FILE* mail_ofp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_qfp

FILE* mail_qfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ifp

FILE* mail_ifp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_pfp

FILE* mail_pfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_tfp

FILE* mail_tfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ppfp

FILE* mail_ppfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable diaryfp

FILE* diaryfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c

Global Variable mail_bfile

char mail_bfile[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_mbfile

char mail_mbfile[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_rfile

char* mail_rfile
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable accesses

char* accesses[]
Visible in:  params.c
Used in:  params.c
  params()params.c

Global Variable avalue

int avalue[]
Visible in:  params.c

Global Variable naccess

int naccess
Visible in:  params.c

Global Variable levels

char* levels[]
Visible in:  params.c
Used in:  params.c
  printlevel()params.c

Global Variable lvalue

int lvalue[]
Visible in:  params.c
Used in: printlevel()params.c

Global Variable nlevel

int nlevel
Visible in:  params.c
Used in: printlevel()params.c

Global Function params()

void params ( FILE* fp )
Prototyped in: functions.h
Calls: print_params()params.c
  printlevel()params.c
  strcatf()params.c
  fprintf(), free(), putseq(), sprintf(), strcap(), strcat(), strlen()
References Variables: accessesparams.c
  broad_paramsparams.c
  dipentglobal.c
  playerparams.c
  signedonparams.c
  variantsvariant.c

Global Function print_params()

void print_params ( FILE* outf, char* line )
Prototyped in: params.c
Calls: atoi(), config(), fprintf(), fputs(), strlen()
Called by: params()params.c

Global Function printlevel()

char* printlevel ( int level )
Prototyped in: functions.h
Calls: strcap()
Called by: params()params.c
References Variables: levelsparams.c
  lvalueparams.c
  nlevelparams.c

Global Function strcatf()

void strcatf ( char* out, char* in, int* first )
Calls: strcat()
Called by: params()params.c