File common.c


Included Files


Global Function HasOneMercenaryAlive()

int HasOneMercenaryAlive ( void )
Called by: next_year()common.c
References Variables: dipentglobal.c

Global Function init_movement()

void init_movement ( void )
Prototyped in: functions.h
Called by: next_phase()st_porder.c
  next_year()common.c
References Variables: dipentglobal.c
  need_orderglobal.c
  nunitglobal.c
  unitglobal.c

Global Function init_retreats()

void init_retreats ( void )
Prototyped in: functions.h
Called by: ma_process_output()ma_porder.c
  process_output()st_porder.c
References Variables: dipentglobal.c
  need_orderglobal.c
  nunitglobal.c
  unitglobal.c

Global Function lookup()

int lookup ( unsigned char* name )
Calls: toupper()
References Variables: heapglobal.c

Global Function next_year()

void next_year ( void )
Prototyped in: functions.h
Calls: HasOneMercenaryAlive()common.c
  init_movement()common.c
  atoi(), sprintf()
Called by: ma_process_output()ma_porder.c
  next_phase()st_porder.c
  process_output()st_porder.c
References Variables: dipentglobal.c

Global Function valid_artillery_move()

int valid_artillery_move ( int u, int p, int* c, int* b )
Prototyped in: functions.h
Calls: valid_move()common.c
Called by: movein()st_movement.c
References Variables: nunitglobal.c
  prglobal.c
  unitglobal.c

Global Function valid_move()

int valid_move ( int u, int p, int* c, int* b )
Prototyped in: functions.h
Called by: DoMoves()st_movement.c
  IsAdjacent()ml_press.c
  ma_movein()ma_movement.c
  ma_retreatin()ma_retreat.c
  movein()st_movement.c
  retreatin()st_retreat.c
  valid_artillery_move()common.c
  valid_aw_move()st_movement.c
References Variables: prglobal.c
  unitglobal.c