prest.c File Reference


Detailed Description

Handles all the prestige related code.

Definition in file prest.c.

#include "Buzz_inc.h"
#include "externs.h"

Go to the source code of this file.

Defines

#define DNE(a, b)   (Data->Prestige[b].Place==(a) || Data->Prestige[b].mPlace==(a))
#define IsGoal(a)   ( (18)==18 || (a)==19 || (a)==20 || (a)==22 || (a)==27) )
#define NSTS(a)   (PVal[a]==4)
#define PSTS(a)   (PVal[a]==1 || PVal[a]==2)
#define SSTS(a)   (PVal[a]==3)
#define STSn(a)   (PVal[a]==4)
#define STSp(a)   (PVal[a]==1 || PVal[a]==2)

Functions

int AllotPrest (char plr, char mis)
int Check_Dock (int limit)
int Check_EVA (int limit)
int Check_Lab (void)
int Check_Photo (void)
char Did_Fail (void)
 Only sets negative for highest failed goal step.
int Find_MaxGoal (void)
char HeroCheck (int which)
int MaxFail (void)
char NegGoal (char *PVal)
char PosGoal (char *PVal)
char PosGoal_Check (char *PVal)
int PrestCheck (char plr)
 Returns the amount of prestige added.
int PrestMap (int val)
char PrestMin (char plr)
int PrestNeg (char plr, int i)
void Set_Dock (char plr, char total)
char Set_Goal (char plr, char which, char control)
 Sets Goal Values and Sums into Data Structure control should be always called with a value of 0 Successful Steps Only Requires MEV to be packed.
void Set_LM (char plr, char total)
char SupGoal (char *PVal)
int U_AllotPrest (char plr, char mis)
char Was_Goal (char total, char which)
 ???

Variables

char AI [2]
char bIDX
char death
FILE * ft
char hero
struct MisAst MA [2][4]
char MAIL
char MANNED [2]
struct MisEval Mev [60]
struct mStr Mis
struct Prest_Upd MP [3]
char Option
char STEPnum
char tIDX
char tMo
char tYr


Define Documentation

#define DNE ( a,
 )     (Data->Prestige[b].Place==(a) || Data->Prestige[b].mPlace==(a))

Referenced by AllotPrest().

#define IsGoal (  )     ( (18)==18 || (a)==19 || (a)==20 || (a)==22 || (a)==27) )

Definition at line 520 of file prest.c.

#define NSTS (  )     (PVal[a]==4)

Definition at line 516 of file prest.c.

Referenced by NegGoal().

#define PSTS (  )     (PVal[a]==1 || PVal[a]==2)

Definition at line 515 of file prest.c.

Referenced by PosGoal(), and PosGoal_Check().

#define SSTS (  )     (PVal[a]==3)

Definition at line 517 of file prest.c.

Referenced by SupGoal().

#define STSn (  )     (PVal[a]==4)

Definition at line 519 of file prest.c.

Referenced by AllotPrest().

#define STSp (  )     (PVal[a]==1 || PVal[a]==2)

Definition at line 518 of file prest.c.

Referenced by AllotPrest().


Function Documentation

int AllotPrest ( char  plr,
char  mis 
)

Definition at line 577 of file prest.c.

Referenced by Launch().

int Check_Dock ( int  limit  ) 

Definition at line 75 of file prest.c.

Referenced by AllotPrest(), and U_AllotPrest().

int Check_EVA ( int  limit  ) 

Definition at line 86 of file prest.c.

References loc, Mev, and STEPnum.

int Check_Lab ( void   ) 

Definition at line 66 of file prest.c.

References loc, Mev, and STEPnum.

Referenced by AllotPrest().

int Check_Photo ( void   ) 

Definition at line 55 of file prest.c.

Referenced by U_AllotPrest().

char Did_Fail ( void   ) 

Only sets negative for highest failed goal step.

checks if entire mission was a failure

Definition at line 481 of file prest.c.

int Find_MaxGoal ( void   ) 

Definition at line 794 of file prest.c.

Referenced by Launch().

char HeroCheck ( int  which  ) 

Definition at line 277 of file prest.c.

References EORBIT, EWALK, LLAND, LPASS, LWALK, and MANSPACE.

Referenced by Set_Goal().

int MaxFail ( void   ) 

Definition at line 501 of file prest.c.

Referenced by AllotPrest(), MissionPast(), Set_Goal(), and U_AllotPrest().

char NegGoal ( char *  PVal  ) 

Definition at line 533 of file prest.c.

Referenced by AllotPrest().

char PosGoal ( char *  PVal  ) 

Definition at line 523 of file prest.c.

Referenced by AllotPrest().

char PosGoal_Check ( char *  PVal  ) 

Definition at line 779 of file prest.c.

Referenced by Find_MaxGoal().

int PrestCheck ( char  plr  ) 

Returns the amount of prestige added.

Note:
Assumes that the Mis Structure is Loaded

Definition at line 159 of file prest.c.

int PrestMap ( int  val  ) 

Definition at line 97 of file prest.c.

References EORBIT, LLAND, LORBIT, LPASS, LUNFLY, MANSPACE, MILE_EORBIT, MILE_LFLY, MILE_LLAND, MILE_LORBIT, MILE_LPASS, MILE_LPL, MILE_MAN, MILE_OSAT, ORBSAT, and PROBELAND.

Referenced by PrestMin().

char PrestMin ( char  plr  ) 

Definition at line 110 of file prest.c.

Referenced by GetMinus(), and MisSkip().

int PrestNeg ( char  plr,
int  i 
)

Definition at line 553 of file prest.c.

Referenced by AllotPrest(), TestFMis(), and U_AllotPrest().

void Set_Dock ( char  plr,
char  total 
)

Definition at line 36 of file prest.c.

char Set_Goal ( char  plr,
char  which,
char  control 
)

Sets Goal Values and Sums into Data Structure control should be always called with a value of 0 Successful Steps Only Requires MEV to be packed.

Definition at line 295 of file prest.c.

Referenced by AllotPrest(), Set_Goal(), TestFMis(), and U_AllotPrest().

void Set_LM ( char  plr,
char  total 
)

Definition at line 46 of file prest.c.

Referenced by AllotPrest().

char SupGoal ( char *  PVal  ) 

Definition at line 543 of file prest.c.

Referenced by AllotPrest().

int U_AllotPrest ( char  plr,
char  mis 
)

Definition at line 811 of file prest.c.

Referenced by Launch().

char Was_Goal ( char  total,
char  which 
)

???

Note:
Requires MEV to be packed Only checks goal steps :: returns GOAL value Does not check if entire mission is a success

Definition at line 233 of file prest.c.

Referenced by Was_Goal().


Variable Documentation

char AI[2]

Definition at line 106 of file main.c.

char bIDX

Definition at line 33 of file prest.c.

Referenced by AllotPrest(), and U_AllotPrest().

char death

Definition at line 43 of file mis_m.c.

FILE* ft

Definition at line 34 of file prest.c.

char hero

Definition at line 43 of file mc.c.

struct MisAst MA[2][4]

Definition at line 31 of file mc.c.

char MAIL

Definition at line 54 of file main.c.

char MANNED[2]

Definition at line 41 of file mc.c.

struct MisEval Mev[60]

Definition at line 32 of file mc.c.

struct mStr Mis

Definition at line 33 of file mc.c.

struct Prest_Upd MP[3]

Definition at line 29 of file pace.c.

char Option

Definition at line 54 of file main.c.

char STEPnum

Definition at line 69 of file mis_c.c.

char tIDX

Definition at line 33 of file prest.c.

Referenced by AllotPrest(), and U_AllotPrest().

char tMo

Definition at line 33 of file prest.c.

Referenced by AllotPrest(), Set_Goal(), and U_AllotPrest().

char tYr

Definition at line 33 of file prest.c.

Referenced by AllotPrest(), Set_Goal(), and U_AllotPrest().


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