Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

nlang.c File Reference

#include "conq.h"
#include "kernel.h"
#include "aiscore.h"
#include "aiunit.h"
#include "aiunit2.h"
#include "aitact.h"
#include "aioprt.h"

Include dependency graph for nlang.c:

Include dependency graph

Classes

struct  a_usualdate
struct  a_usualdatesteprange

Defines

#define NUMTOLIST   5

Typedefs

typedef a_usualdate UsualDate
typedef a_usualdatesteprange UsualDateStepRange

Enumerations

enum  CalendarType { cal_unknown, cal_number, cal_usual }
enum  UsualDateStepType {
  ds_second, ds_minute, ds_hour, ds_day,
  ds_week, ds_month, ds_season, ds_year
}

Functions

void init_nlang (void)
void notify_all (char *fmt,...)
void notify (Side *side, char *fmt,...)
void vnotify (Side *side, char *fmt, va_list ap)
char * side_name (Side *side)
char * side_adjective (Side *side)
char * short_side_title (Side *side)
int short_side_title_plural_p (Side *side)
char * shortest_side_title (Side *side2, char *buf)
char * sidemask_desc (char *buf, SideMask sidemask)
char * side_score_desc (char *buf, Side *side, Scorekeeper *sk)
char * long_player_title (char *buf, Player *player, char *thisdisplayname)
char * short_player_title (char *buf, Player *player, char *thisdisplayname)
char * simple_player_title (char *buf, Player *player)
char * simple_player_name (char *buf, Player *player)
char * unit_handle (Side *side, Unit *unit)
char * apparent_unit_handle (Side *side, Unit *unit, Side *side2)
char * short_unit_handle (Unit *unit)
char * medium_long_unit_handle (Unit *unit)
void name_or_number (Unit *unit, char *buf)
void construction_desc (char *buf, Unit *unit, int u)
void research_desc (char *buf, Unit *unit, int a)
void researchible_desc (char *buf, Unit *unit, int a)
void constructible_desc (char *buf, Side *side, int u, Unit *unit)
int find_event_type (Obj *sym)
void historical_event_desc (Side *side, HistEvent *hevt, char *buf)
int pattern_matches_event (Obj *pattern, HistEvent *hevt)
void event_desc_from_list (Side *side, Obj *lis, HistEvent *hevt, char *buf)
char * action_result_desc (int rslt)
void advance_failure_desc (char *buf, Unit *unit, HistEventType reason)
void linear_desc (char *buf, int x, int y)
void elevation_desc (char *buf, int x, int y)
char * feature_desc (Feature *feature, char *buf)
char * feature_name_at (int x, int y)
void temperature_desc (char *buf, int x, int y)
void size_desc (char *buf, Unit *unit, int label)
void hp_desc (char *buf, Unit *unit, int label)
void acp_desc (char *buf, Unit *unit, int label)
void cxp_desc (char *buf, Unit *unit, int label)
void morale_desc (char *buf, Unit *unit, int label)
void point_value_desc (char *buf, Unit *unit, int label)
int supply_desc (char *buf, Unit *unit, int mrow)
int tooling_desc (char *buf, Unit *unit)
void location_desc (char *buf, Side *side, Unit *unit, int u, int x, int y)
void destination_desc (char *buf, Side *side, Unit *unit, int x, int y, int z)
void latlong_desc (char *buf, int x, int y, int xf, int yf, int which)
void others_here_desc (char *buf, Unit *unit)
void occupants_desc (char *buf, Unit *unit)
void oprole_desc (char *buf, Xconq::AI::OpRole *oprole)
void plan_desc (char *buf, Unit *unit)
void task_desc (char *buf, Side *side, Unit *unit, Task *task)
void action_desc (char *buf, Action *action, Unit *unit)
char * goal_desc (char *buf, Goal *goal)
void time_desc (char *buf, int seconds, int maxtime)
void notify_doctrine (Side *side, char *spec)
int type_matches_symbol (Obj *sym, int u)
void report_combat (Unit *atker, Unit *other, char *str)
void report_give (Side *side, Unit *unit, Unit *unit2, short *rslts)
void report_take (Side *side, Unit *unit, int needed, short *rslts)
void notify_all_of_resignation (Side *side, Side *side2)
char * ordinal_suffix (int n)
char * plural_form (char *word)
char * capitalize (char *buf)
char * all_capitals (char *buf)
char * absolute_date_string (int date)
int turns_between (char *datestr1, char *datestr2)
void set_initial_date (char *str)
void write_side_results (FILE *fp, Side *side)
void write_unit_record (FILE *fp, Side *side)
void write_combat_results (FILE *fp, Side *side)
void record_missing_image (int typtyp, char *str)
int missing_images (char *buf)
char * format_number (char *buf, int value)

Variables

char * dirnames [] = DIRNAMES
 Direction name array.

char * unitbuf = NULL
char * past_unitbuf = NULL
char * datebuf
char * turn_name
char * featurebuf

Define Documentation

#define NUMTOLIST   5
 


Typedef Documentation

typedef struct a_usualdate UsualDate
 

typedef struct a_usualdatesteprange UsualDateStepRange
 


Enumeration Type Documentation

enum CalendarType
 

Enumeration values:
cal_unknown 
cal_number 
cal_usual 

enum UsualDateStepType
 

Enumeration values:
ds_second 
ds_minute 
ds_hour 
ds_day 
ds_week 
ds_month 
ds_season 
ds_year 


Function Documentation

char* absolute_date_string int  date  ) 
 

void acp_desc char *  buf,
Unit unit,
int  label
 

void action_desc char *  buf,
Action action,
Unit unit
 

char* action_result_desc int  rslt  ) 
 

void advance_failure_desc char *  buf,
Unit unit,
HistEventType  reason
 

char* all_capitals char *  buf  ) 
 

char* apparent_unit_handle Side side,
Unit unit,
Side side2
 

char* capitalize char *  buf  ) 
 

void constructible_desc char *  buf,
Side side,
int  u,
Unit unit
 

void construction_desc char *  buf,
Unit unit,
int  u
 

void cxp_desc char *  buf,
Unit unit,
int  label
 

void destination_desc char *  buf,
Side side,
Unit unit,
int  x,
int  y,
int  z
 

void elevation_desc char *  buf,
int  x,
int  y
 

void event_desc_from_list Side side,
Obj lis,
HistEvent hevt,
char *  buf
 

char* feature_desc Feature feature,
char *  buf
 

char* feature_name_at int  x,
int  y
 

int find_event_type Obj sym  ) 
 

char* format_number char *  buf,
int  value
 

char* goal_desc char *  buf,
Goal goal
 

void historical_event_desc Side side,
HistEvent hevt,
char *  buf
 

void hp_desc char *  buf,
Unit unit,
int  label
 

void init_nlang void   ) 
 

void latlong_desc char *  buf,
int  x,
int  y,
int  xf,
int  yf,
int  which
 

void linear_desc char *  buf,
int  x,
int  y
 

void location_desc char *  buf,
Side side,
Unit unit,
int  u,
int  x,
int  y
 

char* long_player_title char *  buf,
Player player,
char *  thisdisplayname
 

char* medium_long_unit_handle Unit unit  ) 
 

int missing_images char *  buf  ) 
 

void morale_desc char *  buf,
Unit unit,
int  label
 

void name_or_number Unit unit,
char *  buf
 

void notify Side side,
char *  fmt,
... 
 

void notify_all char *  fmt,
... 
 

void notify_all_of_resignation Side side,
Side side2
 

void notify_doctrine Side side,
char *  spec
 

void occupants_desc char *  buf,
Unit unit
 

void oprole_desc char *  buf,
Xconq::AI::OpRole *  oprole
 

char* ordinal_suffix int  n  ) 
 

void others_here_desc char *  buf,
Unit unit
 

int pattern_matches_event Obj pattern,
HistEvent hevt
 

void plan_desc char *  buf,
Unit unit
 

char* plural_form char *  word  ) 
 

void point_value_desc char *  buf,
Unit unit,
int  label
 

void record_missing_image int  typtyp,
char *  str
 

void report_combat Unit atker,
Unit other,
char *  str
 

void report_give Side side,
Unit unit,
Unit unit2,
short *  rslts
 

void report_take Side side,
Unit unit,
int  needed,
short *  rslts
 

void research_desc char *  buf,
Unit unit,
int  a
 

void researchible_desc char *  buf,
Unit unit,
int  a
 

void set_initial_date char *  str  ) 
 

char* short_player_title char *  buf,
Player player,
char *  thisdisplayname
 

char* short_side_title Side side  ) 
 

int short_side_title_plural_p Side side  ) 
 

char* short_unit_handle Unit unit  ) 
 

char* shortest_side_title Side side2,
char *  buf
 

char* side_adjective Side side  ) 
 

char* side_name Side side  ) 
 

char* side_score_desc char *  buf,
Side side,
Scorekeeper sk
 

char* sidemask_desc char *  buf,
SideMask  sidemask
 

char* simple_player_name char *  buf,
Player player
 

char* simple_player_title char *  buf,
Player player
 

void size_desc char *  buf,
Unit unit,
int  label
 

int supply_desc char *  buf,
Unit unit,
int  mrow
 

void task_desc char *  buf,
Side side,
Unit unit,
Task task
 

void temperature_desc char *  buf,
int  x,
int  y
 

void time_desc char *  buf,
int  seconds,
int  maxtime
 

int tooling_desc char *  buf,
Unit unit
 

int turns_between char *  datestr1,
char *  datestr2
 

int type_matches_symbol Obj sym,
int  u
 

char* unit_handle Side side,
Unit unit
 

void vnotify Side side,
char *  fmt,
va_list  ap
 

void write_combat_results FILE *  fp,
Side side
 

void write_side_results FILE *  fp,
Side side
 

void write_unit_record FILE *  fp,
Side side
 


Variable Documentation

char* datebuf
 

char* dirnames[] = DIRNAMES
 

Direction name array.

char* featurebuf
 

char* past_unitbuf = NULL
 

char* turn_name
 

char* unitbuf = NULL
 


Generated on Sat Sep 17 10:29:25 2005 for XconqKernel by doxygen 1.3.6