Shadowrun: Awakened 29 September 2011 - Build 871
Defines | Functions
ui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MSG_0   100
#define MSG_1   101
#define MSG_2   102
#define MSG_3   103
#define MSG_4   104
#define MSG_5   105
#define MSG_ABORT   300
#define MSG_ERR   200

Functions

int rt_ui_checkaction (void)
void rt_ui_message (int, const char *)
void rt_ui_progress (int)

Define Documentation

#define MSG_0   100

Definition at line 65 of file ui.h.

Referenced by LoadVol(), rtmesg(), and trace_region().

#define MSG_1   101

Definition at line 66 of file ui.h.

#define MSG_2   102

Definition at line 67 of file ui.h.

#define MSG_3   103

Definition at line 68 of file ui.h.

#define MSG_4   104

Definition at line 69 of file ui.h.

#define MSG_5   105

Definition at line 70 of file ui.h.

#define MSG_ABORT   300

Definition at line 72 of file ui.h.

Referenced by createtgafile(), LoadVol(), opentgafile(), and rtbomb().

#define MSG_ERR   200

Definition at line 71 of file ui.h.

Referenced by createtgafile(), LoadVol(), opentgafile(), rtbomb(), and writetgaregion().


Function Documentation

int rt_ui_checkaction ( void  )

Definition at line 100 of file ui.cpp.

References rt_static_ui_checkaction.

                            {
  if (rt_static_ui_checkaction != NULL) 
    return rt_static_ui_checkaction();
  else
    return 0;
}
void rt_ui_message ( int  ,
const char *   
)

Definition at line 82 of file ui.cpp.

References rt_static_ui_message.

Referenced by createtgafile(), LoadVol(), opentgafile(), rtbomb(), rtmesg(), trace_region(), and writetgaregion().

                                                {
  if (rt_static_ui_message == NULL) {
    fprintf(stderr, "%s\n", msg);
    fflush (stderr);
  } else {
    rt_static_ui_message(level, msg);
  }
}
void rt_ui_progress ( int  )

Definition at line 91 of file ui.cpp.

References rt_static_ui_progress.

                                 {
  if (rt_static_ui_progress != NULL)
    rt_static_ui_progress(percent);
  else {
    fprintf(stderr, "\r %3d%% Complete            \r", percent);
    fflush(stderr);
  }
}

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net