November 8th, 2003, 02:53 AM
|
|
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
OT - Leaked Source Code for MOO3!
code:
// Master of Orion ]|[ ooo look at the l33t roman numeral!!!
// (c) 2003 Microprose^H^H^H^H^H^H^H^H^H^HHasbro^H^H^H^H^H^HIn fogrames^H^H^H^H^H^H^H^H^H^HAtari
// DO NOT LEAK!!!!! Under penalty of death!
// Races
#include "human.h"
/* Removed due to compatibility issues with rantz() function
#include "alkari.h"
#include "bulrathi.h"
#include "mrrshan.h"
#include "darlok.h"
#include "elerian.h"
#include "gnolam.h" */
#include "trilarian.h"
#include "meklar.h"
#include "silicoid.h"
#include "psilon.h"
#include "klackon.h"
#include "sakkra.h"
#include "aliens_from_movie_of_same_title.h" // we'll call them Ithkul, no one will know!
#include "clones_of_other_races.h" // so we can say there are 16, not 8
#include "neworion.h" // just includes antaran.h
// UI includes
#include "blue.h"
#include "blue_more.h"
#include "blue_too_much.h"
#include "black.h"
// Misc. data files
#include "techs.h" // spaces are to rebalance after beta
#include "graphics.h"
#include "sounds.h"
#include "music.h"
// main function
void main()
{
// annoy player
altTab.enabled = false;
// play intro movie
Movie introMovie = new Movie("intro.mov");
introMovie.voices = VOICES_CORNY;
introMovie.explicitness = VAGUE_IN_ALL_THE_WRONG_PLACES;
introMovie.plot = NULL;
introMovie.play();
// show main menu
Menu mainMenu = new Menu("New Game", "Load Game", "Options", "Quit", "Quit NOW! Before it's TOO LATE!");
mainMenu.show();
// begin game
Game theGame = new Game;
theGame.difficulty = rand(); // "a new experience every time!"
// main loop
do
{
// user interface
UserInput input = getUserInput();
switch (input)
{
case INPUT_BUILD_ATTACK_SHIP:
build(new PointDefenseFrigate);
break;
case INPUT_BUILD_DEFENSE_BASE:
build(new PointDefenseFrigate);
break;
case COLONIZE_PLANET:
exit(); // bad player! let the AI minister handle that!
break;
case ATTACK:
Battle aBattle = new Battle(myShips, hisShips);
aBattle.graphicsVintage = 1985;
aBattle.strategicDepth = 0;
aBattle.start();
if (aBattle.won())
display("VICTOLY IS YOU");
else
display("THEY HAVE SET UP US THE BOMB");
break;
case RESEARCH:
display(data::useless);
break;
default:
build(new Transport);
}
// AI ministers
int i;
// colonization minister
for ( i = 0; i < numPlanets; i++)
{
if (planets[i].atmosphere == ATMOS_IRRADIATED)
planets[i].colonize();
}
// construction minister
for (i = 0; i < INT_MAX; i++)
{
build(new TroopTransport); // just in case!
}
} while (!quitting);
}
__________________
The Ed draws near! What dost thou deaux?
|