// C Source File // Created 01/04/2007 01:53:15 PM // Star Blaster by Tyler Cassidy // Version 1.00 // Email: tyler@tylerc.org || altadogsledder89@yahoo.ca // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. #include #include "include.h" UnitPopulation *Population; ProjectilePopulation *Projectiles; PowerupHandler *Powerups; /* The Unit Registry */ /* Order: You, Ally, Enemy, Boss Ships */ UnitRegistryEntry UnitRegistry[] = { { // Your Ship 1 - Monkey Raider "Monkey Raider", MONKEY_RAIDER, YOUR_SHIP, TITANIUM_AMMO, TITANIUM_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 5, 0, 0, 0 }, { // Your Ship 2 - Fork "Fork", FORK, YOUR_SHIP, TITANIUM_AMMO, MAGNETIC_SKIN, 0, DOUBLE_GUN, SLOW_FIRE, 3, 5, 0, 0 }, { // Your Ship 3 - Tank "Tank", TANK, YOUR_SHIP, PBLAST_AMMO, DIAMOND_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 2, 0, 0, 0 }, { // Your Ship 4 - Drill Winder "Drill Winder", DRILL_WINDER, YOUR_SHIP, PBLAST_AMMO, DU_SKIN, 0, DOUBLE_GUN, FAST_FIRE, 3, 5, 0, 0 }, { // Your Ship 5 - Doom Master "Doom Master", DOOM_MASTER, YOUR_SHIP, PBLAST_AMMO, DU_SKIN, 1, SINGLE_GUN, FAST_FIRE, 2, 0, 0, 0 }, { // Ally Ship 1 - Delta V "Delta V", DELTA_V, ALLY_SHIP, DU_AMMO, MAGNETIC_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 2, 0, 0, UI_GENIUS }, { // Ally Ship 2 - Flying Box "Flying Box", FLYING_BOX, ALLY_SHIP, NANO_AMMO, DIAMOND_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 5, 6, 0, UI_GENIUS }, { // Ally Ship 3 - Flamer "Flamer", FLAMER, ALLY_SHIP, DU_AMMO, MAGNETIC_SKIN, 0, DOUBLE_GUN, FAST_FIRE, 2, 0, 0, UI_INSANE }, { // Enemy Ship 1 - Boomerang "Boomerang", BOOMERANG, ENEMY_SHIP, TITANIUM_AMMO, TITANIUM_SKIN, 0, SINGLE_GUN, SLOW_FIRE, 2, 0, 10, UI_DUMB }, { // Enemy Ship 2 - The Bomb "The Bomb", THE_BOMB, ENEMY_SHIP, DU_AMMO, DU_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 2, 0, 20, UI_AVERAGE }, { // Enemy Ship 3 - Stinger "Stinger", STINGER, ENEMY_SHIP, TITANIUM_AMMO, MAGNETIC_SKIN, 0, DOUBLE_GUN, SLOW_FIRE, 2, 5, 25, UI_AVERAGE }, { // Enemy Ship 4 - R 73 "R 73", R_73, ENEMY_SHIP, DU_AMMO, DU_SKIN, 0, SINGLE_GUN, NORMAL_FIRE, 2, 0, 28, UI_SMART }, { // Enemy Ship 5 - X Blaster "X Blaster", X_BLASTER, ENEMY_SHIP, PBLAST_AMMO, DIAMOND_SKIN, 0, SINGLE_GUN, FAST_FIRE, 2, 0, 35, UI_SMART }, { // Enemy Ship 6 - Jumper "Jumper", JUMPER, ENEMY_SHIP, PBLAST_AMMO, DIAMOND_SKIN, 1, DOUBLE_GUN, FAST_FIRE, 3, 4, 40, UI_SMART }, { // Boss Ship 1 - Bumble Bee "Bumble Bee", BUMBLE_BEE, BOSS_SHIP, DU_AMMO, DU_SKIN, 0, DOUBLE_GUN, NORMAL_FIRE, 4, 10, 50, UI_AVERAGE }, { // Boss Ship 2 - The Key "The Key", THE_KEY, BOSS_SHIP, PBLAST_AMMO, DIAMOND_SKIN, 0, SINGLE_GUN, FAST_FIRE, 2, 0, 75, UI_GENIUS }, { // Boss Ship 3 - Hornet "Hornet", HORNET, BOSS_SHIP, NANO_AMMO, DIAMOND_SKIN, 1, SINGLE_GUN, FAST_FIRE, 5, 0, 100, UI_INSANE }, { // Boss Ship 4 - Mac "Mac", MAC, BOSS_SHIP, RAIL_AMMO, CARBON60_SKIN, 1, DOUBLE_GUN, FAST_FIRE, 0, 3, 250, UI_INSANE } }; const char *YourShipsText[] = { "Monkey Raider", "Fork", "Tank", "Drill Winder", "Doom Master" }; const char *AllyShipsText[] = { "Delta V", "Flying Box", "Flamer" }; const char *EnemyShipsText[] = { "Boomerang", "The Bomb", "Stinger", "R 73", "X Blaster", "Jumper" }; const char *BossShipsText[] = { "Bumble Bee", "The Key", "Hornet", "Mac" }; const char *DifficultyText[] = { "Easy", "Normal", "Hard", "Insane" }; const char *WeaponsText[] = { "Titanium Ammo", "DU Ammo", "Photon Blast Ammo", "Nano Ammo", "Rail Ammo" }; const char *ArmorText[] = { "Titanium Skin", "Magnetic Skin", "DU Skin", "Diamond Skin", "Carbon 60 Skin" };