start.c File Reference

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

Go to the source code of this file.

Functions

void AstroTurn (void)
void SetEvents (void)
void TestFMis (int j, int i)
void UpdAll (char side)
void Update (void)
void UpdateHardTurn (char plr)
 Update equipment.

Variables

char MAIL
char Nums [30][7]
char pNeg [NUM_PLAYERS][MAX_MISSIONS]


Function Documentation

void AstroTurn ( void   ) 

Todo:
: This code must be split... it's cluttered beyond hope

Todo:
: This is probably a bug! Should be Cap == 0 ??

Definition at line 104 of file start.c.

References Astros::Active, Astros::Assign, Defl::Ast1, Defl::Ast2, BuzzData::AstroCount, ASTRONAUT_CREW_MAX, ASTRONAUT_FLT_CREW_MAX, ASTRONAUT_POOLS, Astros::Cap, Astros::CL, Astros::Compat, Astros::CR, BuzzData::Crew, Astros::Crew, Data, Players::Def, Astros::Docking, Astros::Endurance, Astros::EVA, Astros::Focus, BuzzData::Gcnt, Astros::Hero, Astros::IDelay, Astros::LM, MAIL, Astros::Mis, Astros::Mood, Astros::Moved, Astros::Name, NUM_PLAYERS, Astros::oldAssign, BuzzData::Other, Players::P, BuzzData::Pool, Astros::Prime, random, Astros::RDelay, Astros::RetReas, Players::Season, Astros::Special, Astros::Status, Astros::Task, Astros::TrainingLevel, Astros::Una, and UpdateHardTurn().

void SetEvents ( void   ) 

Definition at line 37 of file start.c.

References BuzzData::AIpath, Data, Players::Events, PrestType::mPlace, Players::P, PrestType::Place, Players::Prestige, random, Rep, and sOpen().

void TestFMis ( int  j,
int  i 
)

Definition at line 974 of file start.c.

References Data, PastInfo::Event, BuzzData::History, PastInfo::MissionCode, Players::P, BuzzData::Plans, PastInfo::Prestige, PrestNeg(), random, PastInfo::Saf, Set_Goal(), and PastInfo::spResult.

void UpdAll ( char  side  ) 

Definition at line 826 of file start.c.

References BuzzData::AstroDelay, AstroTurn(), BuzzData::Block, BuzzData::Budget, BuzzData::Buy, Equipment::Code, Data, BuzzData::DMod, PastInfo::Event, Equipment::Failures, BuzzData::Future, PrestType::Goal, BuzzData::History, MissionType::Joint, BuzzData::Manned, BuzzData::Mission, PastInfo::MissionCode, MissionType::MissionCode, PastInfo::MissionYear, PastInfo::Month, Equipment::Name, MissionType::Name, Nums, BuzzData::Other, Players::P, BuzzData::PastMis, MissionType::Patch, pNeg, Players::Prestige, BuzzData::Probe, MissionType::Prog, random, BuzzData::RDMods, BuzzData::RDYear, PastInfo::spResult, TestFMis(), BuzzData::TurnOnly, and Equipment::Used.

void Update ( void   ) 

Definition at line 673 of file start.c.

References BuzzData::AstroDelay, AstroTurn(), BuzzData::Block, BuzzData::Budget, BuzzData::Buy, Equipment::Code, Data, BuzzData::DMod, PastInfo::Event, Equipment::Failures, BuzzData::Future, PrestType::Goal, BuzzData::History, MissionType::Joint, BuzzData::Manned, MAX_MISSIONS, BuzzData::Mission, PastInfo::MissionCode, MissionType::MissionCode, PastInfo::MissionYear, PastInfo::Month, Equipment::Name, MissionType::Name, NUM_PLAYERS, Nums, BuzzData::Other, Players::P, BuzzData::PastMis, MissionType::Patch, pNeg, Players::Prestige, BuzzData::Probe, MissionType::Prog, random, BuzzData::RDMods, BuzzData::RDYear, PastInfo::spResult, TestFMis(), BuzzData::TurnOnly, and Equipment::Used.

void UpdateHardTurn ( char  plr  ) 

Update equipment.

Todo:
limit of hardcoded 28 hardware types
Todo:
Should this not handle all four types of hardware?

Definition at line 1011 of file start.c.

References Data, Equipment::Delay, Equipment::Num, Players::P, BuzzData::Probe, Equipment::Seas, and Equipment::Spok.


Variable Documentation

char MAIL

Definition at line 54 of file main.c.

char Nums[30][7]

Initial value:

{"I","II","III","IV","V","VI","VII","VIII","IX","X",
   "XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX",
   "XX","XXI","XXII","XXIII","XXIV","XXV","XXVI","XXVII",
   "XXVIII","XXIX","XXX"}

Definition at line 32 of file start.c.

char pNeg[NUM_PLAYERS][MAX_MISSIONS]

Definition at line 51 of file main.c.


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