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

cmd.c File Reference

#include "conq.h"
#include "kpublic.h"
#include "imf.h"
#include "ui.h"
#include "cmd.def"

Include dependency graph for cmd.c:

Include dependency graph

Classes

struct  cmdtab

Defines

#define C(c)   ((c)-0x40)
#define DEF_CMD(LETTER, NAME, FN, HELP)   { LETTER, NAME, FN, HELP },
#define DURING_GAME_ONLY(side)

Typedefs

typedef cmdtab CmdTab

Functions

void execute_command (Side *side, int ch)
void execute_long_command (Side *side, char *cmdstr)
void parse_long_name_command (char *cmdstr, int *prefixp, char **namep, char **argp, char *buf)
void describe_key_commands (int arg, char *key, TextBuffer *buf)
void describe_long_commands (int arg, char *key, TextBuffer *buf)
void do_add_player (Side *side)
void do_ai_side (Side *side)
void do_auto (Side *side)
void do_c_rate (Side *side)
void do_clear_plan (Side *side)
void do_delay (Side *side)
void do_detonate (Side *side)
void do_disband (Side *side)
void do_disembark (Side *side)
void do_distrust (Side *side)
void do_doctrine (Side *side)
void do_down (Side *side)
void do_draw_willingness (Side *side)
void do_embark (Side *side)
void do_end_turn (Side *side)
void do_force_global_replan (Side *side)
void do_give (Side *side)
void do_idle (Side *side)
void do_release (Side *side)
void do_research (Side *side)
void do_reserve (Side *side)
void do_return (Side *side)
void do_run (Side *side)
void do_set_rate (Side *side)
void do_sleep (Side *side)
void do_submit (Side *side)
void do_take (Side *side)
void do_trust (Side *side)
void do_wake (Side *side)
void do_wake_all (Side *side)
void do_warning_log (Side *side)
void do_gdl (Side *side)
void do_debug (Side *side)
void do_debugg (Side *side)
void do_debugm (Side *side)

Variables

int autofinish_start
int autofinish_count
CmdTab commands []
char tmpkey
char * cmdargstr
HelpNodekey_commands_help_node
HelpNodelong_commands_help_node
HelpNodemap_help_node

Define Documentation

#define C  )     ((c)-0x40)
 

#define DEF_CMD LETTER,
NAME,
FN,
HELP   )     { LETTER, NAME, FN, HELP },
 

#define DURING_GAME_ONLY side   ) 
 

Value:

if (endofgame) {  \
    cmd_error((side), "Cannot do after game is over!");  \
    return;  \
  }


Typedef Documentation

typedef struct cmdtab CmdTab
 


Function Documentation

void describe_key_commands int  arg,
char *  key,
TextBuffer buf
 

void describe_long_commands int  arg,
char *  key,
TextBuffer buf
 

void do_add_player Side side  ) 
 

void do_ai_side Side side  ) 
 

void do_auto Side side  ) 
 

void do_c_rate Side side  ) 
 

void do_clear_plan Side side  ) 
 

void do_debug Side side  ) 
 

void do_debugg Side side  ) 
 

void do_debugm Side side  ) 
 

void do_delay Side side  ) 
 

void do_detonate Side side  ) 
 

void do_disband Side side  ) 
 

void do_disembark Side side  ) 
 

void do_distrust Side side  ) 
 

void do_doctrine Side side  ) 
 

void do_down Side side  ) 
 

void do_draw_willingness Side side  ) 
 

void do_embark Side side  ) 
 

void do_end_turn Side side  ) 
 

void do_force_global_replan Side side  ) 
 

void do_gdl Side side  ) 
 

void do_give Side side  ) 
 

void do_idle Side side  ) 
 

void do_release Side side  ) 
 

void do_research Side side  ) 
 

void do_reserve Side side  ) 
 

void do_return Side side  ) 
 

void do_run Side side  ) 
 

void do_set_rate Side side  ) 
 

void do_sleep Side side  ) 
 

void do_submit Side side  ) 
 

void do_take Side side  ) 
 

void do_trust Side side  ) 
 

void do_wake Side side  ) 
 

void do_wake_all Side side  ) 
 

void do_warning_log Side side  ) 
 

void execute_command Side side,
int  ch
 

void execute_long_command Side side,
char *  cmdstr
 

void parse_long_name_command char *  cmdstr,
int *  prefixp,
char **  namep,
char **  argp,
char *  buf
 


Variable Documentation

int autofinish_count
 

int autofinish_start
 

char* cmdargstr
 

CmdTab commands[]
 

HelpNode* key_commands_help_node
 

HelpNode* long_commands_help_node
 

HelpNode* map_help_node
 

char tmpkey
 


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