future.c File Reference


Detailed Description

This is responsible for Future Mission planning screen.

Definition in file future.c.

#include "Buzz_inc.h"
#include "externs.h"
#include <assert.h>
#include "logging.h"

Go to the source code of this file.

Data Structures

struct  Parameter
struct  StepInfo

Functions

void Bd (int x, int y)
 draws the bubble on the screen, starts with upper left coor
void ClearDisplay (void)
void ClearRX (int s)
int DownSearchRout (int num, char plr)
void draw_Pie (int s)
 draw a piechart
void DrawFuture (char plr, int mis, char pad)
void DrawLocks (void)
void DurPri (int x)
 Print the duration of a mission.
char FutBad (void)
 Draws stuff about choosing a program and having < 2 groups available.
void Future (char plr)
int GetMinus (char plr)
void Load_FUT_BUT (void)
 LOG_DEFAULT_CATEGORY (future)
void MissionName (int val, int xx, int yy, int len)
void Missions (char plr, int X, int Y, int val, char bub)
 Missions() will draw the future missions among other things.
void PianoKey (int X)
void PlaceRX (int s)
void SetParameters (void)
void TogBox (int x, int y, int st)
void Toggle (int wh, int i)
 set the toggles???
int UpSearchRout (int num, char plr)

Variables

int Bub_Count
char F1
char F2
char F3
char F4
char F5
char FMen
char JointFlag
char JupFlag
char lck [5]
char MarFlag
struct MisEval Mev [60]
struct mStr Mis
char MisType
char Pad
char SatFlag
int SEG
char status [5]
struct StepInfo StepBub [MAXBUB]
struct Parameter V [62]
GXHEADER vh


Function Documentation

void Bd ( int  x,
int  y 
)

draws the bubble on the screen, starts with upper left coor

Parameters:
x x-coord of the upper left corner of the bubble
y y-coord of the upper left corner of the bubble

Note:
references Bub_Count to determine the number of the character to draw in the bubble

Definition at line 996 of file future.c.

Referenced by Draw_GH(), Draw_HighS(), Draw_IJ(), Draw_IJV(), Draw_LowS(), Draw_PQR(), Draw_PST(), DrawLefMoon(), DrawLunPas(), DrawMoon(), DrawSTUV(), DrawZ(), Fly_By(), LefEarth(), LefGap(), LefOrb(), OrbIn(), OrbMid(), OrbOut(), RghtMoon(), S_Patch(), and VenMarMerc().

void ClearDisplay ( void   ) 

Definition at line 187 of file future.c.

Referenced by Missions().

void ClearRX ( int  s  ) 

Definition at line 351 of file future.c.

Referenced by DrawFuture(), DrawLocks(), and Future().

int DownSearchRout ( int  num,
char  plr 
)

Definition at line 413 of file future.c.

Referenced by Future().

void draw_Pie ( int  s  ) 

draw a piechart

The piechart is indicating the number of astronauts on this mission.

Parameters:
s something of an offset...

Definition at line 328 of file future.c.

Referenced by DrawFuture(), Future(), and PianoKey().

void DrawFuture ( char  plr,
int  mis,
char  pad 
)

Definition at line 63 of file future.c.

Referenced by Future().

void DrawLocks ( void   ) 

Definition at line 230 of file future.c.

Referenced by PianoKey().

void DurPri ( int  x  ) 

Print the duration of a mission.

Parameters:
x duration code
Todo:
Link this at whatever place the duration is actually defined

Definition at line 1018 of file future.c.

Referenced by Missions().

char FutBad ( void   ) 

Draws stuff about choosing a program and having < 2 groups available.

Deprecated:
This function appears to be depricated.

Definition at line 1277 of file future.c.

void Future ( char  plr  ) 

Todo:
the whole Future()-function is 500 >lines and unreadable

Definition at line 461 of file future.c.

Referenced by Admin(), and MisIntel().

int GetMinus ( char  plr  ) 

Definition at line 196 of file future.c.

Referenced by DrawFuture(), Future(), and Missions().

void Load_FUT_BUT ( void   ) 

Definition at line 52 of file future.c.

Referenced by DrawFuture().

LOG_DEFAULT_CATEGORY ( future   ) 

void MissionName ( int  val,
int  xx,
int  yy,
int  len 
)

Definition at line 1036 of file future.c.

Referenced by EndGame(), FakeWin(), Missions(), PadDraw(), and XSpec().

void Missions ( char  plr,
int  X,
int  Y,
int  val,
char  bub 
)

Missions() will draw the future missions among other things.

Parameters:
plr Player
X ???
Y ???
val ???
bub if set to 0 or 3 the function will not draw stuff

Todo:
This mapping of val -> drawing of missions steps should be more variable

Definition at line 1063 of file future.c.

Referenced by DisplAst(), DisplAstData(), DrawFuture(), Future(), FutureCheck(), and UpAstroData().

void PianoKey ( int  X  ) 

Definition at line 286 of file future.c.

Referenced by Missions().

void PlaceRX ( int  s  ) 

Definition at line 337 of file future.c.

Referenced by DrawFuture(), DrawLocks(), Future(), and PianoKey().

void SetParameters ( void   ) 

Definition at line 214 of file future.c.

Referenced by Future().

void TogBox ( int  x,
int  y,
int  st 
)

Definition at line 271 of file future.c.

Referenced by DrawFuture(), and Future().

void Toggle ( int  wh,
int  i 
)

set the toggles???

Parameters:
wh the button
i in or out

Definition at line 245 of file future.c.

Referenced by DrawFuture(), Future(), and PianoKey().

int UpSearchRout ( int  num,
char  plr 
)

Definition at line 365 of file future.c.

Referenced by Future().


Variable Documentation

int Bub_Count

Definition at line 30 of file futbub.c.

char F1

Definition at line 28 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), Future(), PianoKey(), and UpSearchRout().

char F2

Definition at line 28 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), Future(), PianoKey(), and UpSearchRout().

char F3

Definition at line 28 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), Future(), PianoKey(), and UpSearchRout().

char F4

Definition at line 28 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), Future(), PianoKey(), and UpSearchRout().

char F5

Definition at line 28 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), Future(), Missions(), PianoKey(), and UpSearchRout().

char FMen

Definition at line 28 of file future.c.

Referenced by DrawFuture(), and Future().

char JointFlag

Definition at line 29 of file future.c.

Referenced by DrawFuture(), and Future().

char JupFlag

Definition at line 29 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), and UpSearchRout().

char lck[5]

Definition at line 28 of file future.c.

Referenced by DrawFuture(), DrawLocks(), and Future().

char MarFlag

Definition at line 29 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), and UpSearchRout().

struct MisEval Mev[60]

Definition at line 32 of file mc.c.

Referenced by AllotPrest(), Check_Dock(), Check_EVA(), Check_Lab(), Check_Photo(), Did_Fail(), F_KillCrew(), FailEval(), FailureMode(), Find_MaxGoal(), Future(), Launch(), MaxFail(), MaxFailPad(), MCGraph(), MisCheck(), MisPrt(), MissionSteps(), PlaySequence(), PrestNeg(), Set_Dock(), Set_Goal(), Set_LM(), SetW(), and Was_Goal().

struct mStr Mis

Definition at line 33 of file mc.c.

char MisType

Definition at line 29 of file future.c.

Referenced by Future(), and Missions().

char Pad

Definition at line 28 of file future.c.

Referenced by Future(), and Missions().

char SatFlag

Definition at line 29 of file future.c.

Referenced by DownSearchRout(), DrawFuture(), and UpSearchRout().

int SEG

Definition at line 55 of file main.c.

char status[5]

Definition at line 28 of file future.c.

Referenced by DrawFuture(), Future(), and PianoKey().

struct StepInfo StepBub[MAXBUB]

Referenced by Bd(), and Future().

struct Parameter V[62]

Referenced by DownSearchRout(), Future(), Missions(), PianoKey(), SetParameters(), and UpSearchRout().

GXHEADER vh

Definition at line 30 of file future.c.


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