File st_build.c


Included Files


Preprocessor definitions

#define PossibleHomeCentre( p1 )

Global Variable one_owned

int one_owned[(139-1)+1]
Visible in:  st_build.c
   st_movement.c
Used in: ExtraCentres()st_build.c
  buildin()st_build.c
  movein()st_movement.c

Local Variables

nu
static int nu[(139-1)+1]
Used in: buildin()
  buildout()
  init_build()

lu
static int lu[(139-1)+1]
Used in: buildin()
  init_build()


Global Function CheckOwnedOK()

int CheckOwnedOK ( char type, int u, int p, int p1, int* c1 )
Calls: errmsg()po_errmsg.c
  utype()
Called by: buildin()st_build.c
References Variables: dipentglobal.c
  prglobal.c
  unitglobal.c

Global Function CountCentres()

int CountCentres ( int p )
Prototyped in: functions.h
Called by: buildin()st_build.c
  buildout()st_build.c
  moveout()st_movement.c
References Variables: nprglobal.c
  prglobal.c

Global Function CountHomeCentres()

int CountHomeCentres ( int p )
Called by: buildin()st_build.c
  buildout()st_build.c
References Variables: dipentglobal.c
  nprglobal.c
  plettervariant.c
  prglobal.c

Global Function ExtraCentres()

int ExtraCentres ( int power )
Prototyped in: functions.h
Calls: ExtraYearCentres()st_build.c
Called by: buildout()st_build.c
  init_build()st_build.c
  ownership()st_porder.c
References Variables: dipentglobal.c
  extra_centresglobal.c
  nprglobal.c
  one_ownedst_build.c
  plettervariant.c
  prglobal.c

Global Function build_syntaxcheck()

int build_syntaxcheck ( char* in_text, int precheck, char* out_string )
Prototyped in: functions.h
Calls: canpreprocess()po_errmsg.c
  errmsg()po_errmsg.c
  get_order()po_get.c
  get_type()po_get.c
  AddOrderToOrder(), AddProvinceToOrder(), AddUnitProvinceToOrder(), get_prov(), strcpy()
Called by: mail_shorthand()ml_short.c
References Variables: dipentglobal.c
  prglobal.c

Global Function buildin()

int buildin ( char** s, int p )
Prototyped in: functions.h
Calls: CheckOwnedOK()st_build.c
  CountCentres()st_build.c
  CountHomeCentres()st_build.c
  errmsg()po_errmsg.c
  get_order()po_get.c
  get_power()po_get.c
  get_type()po_get.c
  GetUnitIndex(), PowerControlledBy(), Utype(), get_prov(), mov_type(), power()
Called by: process_input()st_porder.c
References Variables: dipentglobal.c
  lust_build.c
  mtypeglobal.c
  nust_build.c
  nunitglobal.c
  one_ownedst_build.c
  plettervariant.c
  powersvariant.c
  prglobal.c
  unitglobal.c

Global Function buildout()

void buildout ( int pt )
Prototyped in: functions.h
Calls: CountCentres()st_build.c
  CountHomeCentres()st_build.c
  ExtraCentres()st_build.c
  mast_rpt()po_mastrpt.c
  FindPower(), PowerControlledBy(), PrintTreasury(), __flsbuf(), atoi(), autype(), fprintf(), mov_type(), strlen(), utype()
Called by: process_output()st_porder.c
References Variables: dipentglobal.c
  errglobal.c
  more_ordersglobal.c
  mtypeglobal.c
  nprglobal.c
  nust_build.c
  nunitglobal.c
  plettervariant.c
  powersvariant.c
  prglobal.c
  predictst_porder.c
  processingglobal.c
  rfpglobal.c
  unitglobal.c

Global Function init_build()

void init_build ( void )
Prototyped in: functions.h
Calls: ExtraCentres()st_build.c
  UpdateBlockades()
Called by: process_input()st_porder.c
References Variables: dipentglobal.c
  lust_build.c
  nprglobal.c
  nust_build.c
  nunitglobal.c
  plettervariant.c
  prglobal.c
  unitglobal.c

Local Function ExtraYearCentres()

static int ExtraYearCentres ( void )
Prototyped in: st_build.c
Calls: atoi()
Called by: ExtraCentres()st_build.c
References Variables: dipentglobal.c
  sphasevariant.c