news.c File Reference

#include "gamedata.h"
#include "Buzz_inc.h"
#include "externs.h"
#include "macros.h"
#include "av.h"
#include "mmfile.h"
#include "logging.h"

Go to the source code of this file.

Data Structures

struct  rNews

Defines

#define BUFFR_FRAMES   1
#define FIRST_FRAME   0
#define PHYS_PAGE_OFFSET   0x4000
#define TOMS_BUGFIX   69

Enumerations

enum  news_type {
  NEWS_ANGLE,
  NEWS_OPENING,
  NEWS_CLOSING
}

Functions

void AIEvent (char plr)
void Breakgrp (char plr)
void DispNews (char plr, char *src, char *dest)
static void DrawBottomNewsBox (int player)
void DrawNews (char plr)
void DrawNText (char plr, char got)
static void DrawTopNewsBox (int player)
void GoNews (char plr)
mm_fileLoadNewsAnim (int plr, int bw, int type, int Mode, mm_file *fp)
void News (char plr)
void NFrame (int x1, int y1, int x2, int y2)
void OpenNews (char plr, char *buf, int bud)
int PlayNewsAnim (mm_file *fp)
char ResolveEvent (char plr)
void ShowEvt (char plr, char crd)

Variables

static int AnimIndex = 255
static int bufsize
int evflag
static int Frame
double load_news_anim_start
static int LOAD_SV = 0
static int LOAD_US = 0
static int MaxFrame
static int news_index [2][2][3]
static char * news_shots [] = { "angle", "opening", "closing" }
char Option
SimpleHdr table [99]


Define Documentation

#define BUFFR_FRAMES   1

Definition at line 42 of file news.c.

#define FIRST_FRAME   0

Definition at line 43 of file news.c.

Referenced by LoadNewsAnim(), and News().

#define PHYS_PAGE_OFFSET   0x4000

Definition at line 41 of file news.c.

#define TOMS_BUGFIX   69

Definition at line 44 of file news.c.

Referenced by LoadNewsAnim(), and News().


Enumeration Type Documentation

enum news_type

Enumerator:
NEWS_ANGLE 
NEWS_OPENING 
NEWS_CLOSING 

Definition at line 56 of file news.c.


Function Documentation

void AIEvent ( char  plr  ) 

Definition at line 824 of file news.c.

Referenced by MainLoop().

void Breakgrp ( char  plr  ) 

Definition at line 860 of file news.c.

void DispNews ( char  plr,
char *  src,
char *  dest 
)

Definition at line 289 of file news.c.

Referenced by GoNews().

static void DrawBottomNewsBox ( int  player  )  [static]

Definition at line 958 of file news.c.

References DNArrow(), DrawNText(), InBox(), RectFill(), ShBox(), and UPArrow().

Referenced by LoadNewsAnim().

void DrawNews ( char  plr  ) 

Definition at line 446 of file news.c.

void DrawNText ( char  plr,
char  got 
)

Definition at line 476 of file news.c.

Referenced by DrawBottomNewsBox(), and News().

static void DrawTopNewsBox ( int  player  )  [static]

Definition at line 941 of file news.c.

References av_need_update_xy(), Box(), grSetColor(), InBox(), IOBox(), OutBox(), PrintAt(), RectFill(), and ShBox().

Referenced by LoadNewsAnim(), and ShowEvt().

void GoNews ( char  plr  ) 

Definition at line 93 of file news.c.

Referenced by News().

mm_file* LoadNewsAnim ( int  plr,
int  bw,
int  type,
int  Mode,
mm_file fp 
)

Definition at line 973 of file news.c.

Referenced by News().

void News ( char  plr  ) 

Definition at line 542 of file news.c.

Referenced by MainLoop().

void NFrame ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 81 of file news.c.

void OpenNews ( char  plr,
char *  buf,
int  bud 
)

Definition at line 128 of file news.c.

Referenced by GoNews().

int PlayNewsAnim ( mm_file fp  ) 

Definition at line 904 of file news.c.

Referenced by News().

char ResolveEvent ( char  plr  ) 

Definition at line 832 of file news.c.

Referenced by AIEvent(), and GoNews().

void ShowEvt ( char  plr,
char  crd 
)

Definition at line 1098 of file news.c.

Referenced by News().


Variable Documentation

int AnimIndex = 255 [static]

Definition at line 48 of file news.c.

Referenced by LoadNewsAnim(), and News().

int bufsize [static]

Definition at line 47 of file news.c.

Referenced by get_page(), and OpenNews().

int evflag

Definition at line 46 of file news.c.

int Frame [static]

Definition at line 48 of file news.c.

Referenced by LoadNewsAnim(), and PlayNewsAnim().

double load_news_anim_start

Definition at line 39 of file news.c.

Referenced by LoadNewsAnim(), and PlayNewsAnim().

int LOAD_SV = 0 [static]

Definition at line 47 of file news.c.

Referenced by News().

int LOAD_US = 0 [static]

Definition at line 47 of file news.c.

Referenced by News().

int MaxFrame [static]

Definition at line 48 of file news.c.

Referenced by LoadNewsAnim(), and PlayNewsAnim().

int news_index[2][2][3] [static]

Initial value:

 {
    { 
        { 9, 1, 3 }, 
        { 8, 0, 2 }, 
    },
    { 
        { 10, 4, 6 }, 
        { 11, 5, 7 }, 
    },
}

Definition at line 63 of file news.c.

Referenced by LoadNewsAnim().

char* news_shots[] = { "angle", "opening", "closing" } [static]

Definition at line 37 of file news.c.

Referenced by LoadNewsAnim().

char Option

Definition at line 54 of file main.c.

SimpleHdr table[99]

Definition at line 54 of file news.c.


Generated on Fri Sep 28 00:35:28 2007 for raceintospace by  doxygen 1.5.3