Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/actions.c File Reference


Detailed Description

Code to handle the 'actions menu', a pull-up list of all supported commands.

Definition in file actions.c.

#include "crogue.h"
#include "export.h"

Go to the source code of this file.

Data Structures

struct  actions_menu_entry
 An entry in the 'actions' menu. More...


Defines

#define KEY_SCROLLING_ACTIONS   0
#define DEBUG_ACTIONS   0

Typedefs

typedef actions_menu_entry actions_menu_entry
 An entry in the 'actions' menu.


Functions

void actions_menu_callback (int n, char *buf)
int num_actions (void)
 Count the entries in the actions table, using the fact that the last entry is null.

int actions_menu (void)

Variables

const actions_menu_entry actions []


Define Documentation

#define DEBUG_ACTIONS   0
 

Definition at line 35 of file actions.c.

#define KEY_SCROLLING_ACTIONS   0
 

Definition at line 30 of file actions.c.


Typedef Documentation

typedef struct actions_menu_entry actions_menu_entry
 

An entry in the 'actions' menu.


Function Documentation

int actions_menu void   ) 
 

Definition at line 102 of file actions.c.

References actions, actions_menu_callback(), actions_menu_tab_stops, actions_rect, full_redraw(), actions_menu_entry::key, KEY_NOP, num_actions(), setTabStops(), and UI_Menu_Pick().

Referenced by plr_move().

void actions_menu_callback int  n,
char *  buf
[static]
 

Definition at line 86 of file actions.c.

References actions, and get_keyname().

Referenced by actions_menu().

int num_actions void   )  [static]
 

Count the entries in the actions table, using the fact that the last entry is null.

Definition at line 93 of file actions.c.

References actions, and actions_menu_entry::str.

Referenced by actions_menu().


Variable Documentation

const actions_menu_entry actions[] [static]
 

Definition at line 46 of file actions.c.

Referenced by actions_menu(), actions_menu_callback(), and num_actions().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6