.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 8th, 2003, 02:53 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.