⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 globals.c

📁 早期freebsd实现
💻 C
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 1983, 1993 *	The Regents of the University of California.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */#ifndef lintstatic char sccsid[] = "@(#)globals.c	8.1 (Berkeley) 5/31/93";#endif /* not lint */#include "externs.h"struct scenario scene[] = {	/*	 * int winddir;	 * int windspeed;	 * int windchange;	 * int vessels;	 * char *name;	 * struct ship ship[NSHIP];	 */	5, 3, 5, 2, "Ranger vs. Drake",	{		{ "Ranger",		specs+0,  N_A,  7, 20, 4, 0 },		{ "Drake",		specs+1,  N_B,  7, 31, 5, 0 }	},	1, 3, 6, 2, "The Battle of Flamborough Head",	{		{ "Bonhomme Rich",	specs+2,  N_A, 13, 40, 2, 0 },		{ "Serapis",		specs+3,  N_B,  2, 42, 2, 0 }	},	5, 5, 5, 10, "Arbuthnot and Des Touches",	{		{ "America",		specs+4,  N_B,  7, 37, 4, 0 },		{ "Befford",		specs+5,  N_B,  5, 35, 4, 0 },		{ "Adamant",		specs+6,  N_B,  3, 33, 4, 0 },		{ "London",		specs+7,  N_B,  1, 31, 4, 0 },		{ "Royal Oak",		specs+8,  N_B, -1, 29, 4, 0 },		{ "Neptune",		specs+9,  N_F,  6, 44, 4, 0 },		{ "Duc Bougogne",	specs+10, N_F,  8, 46, 4, 0 },		{ "Conquerant",		specs+48, N_F, 10, 48, 4, 0 },		{ "Provence",		specs+11, N_F, 12, 50, 4, 0 },		{ "Romulus",		specs+12, N_F, 20, 58, 4, 0 }	},	1, 3, 5, 10, "Suffren and Hughes",	{		{ "Monmouth",		specs+52, N_B,  9, 45, 2, 0 },		{ "Hero",		specs+5,  N_B, 13, 49, 2, 0 },		{ "Isis",		specs+6,  N_B, 12, 48, 2, 0 },		{ "Superb",		specs+50, N_B, 10, 46, 2, 0 },		{ "Burford",		specs+48, N_B, 11, 47, 2, 0 },		{ "Flamband",		specs+13, N_F,  7, 59, 4, 0 },		{ "Annibal",		specs+9,  N_F,  4, 56, 4, 0 },		{ "Severe",		specs+11, N_F,  2, 54, 4, 0 },		{ "Brilliant",		specs+49, N_F, -1, 51, 4, 0 },		{ "Sphinx",		specs+51, N_F, -5, 47, 4, 0 }	},	1, 3, 4, 2, "Nymphe vs. Cleopatre",	{		{ "Nymphe",		specs+14, N_B, 13, 30, 2, 0 },		{ "Cleopatre",		specs+15, N_F,  3, 41, 2, 0 }	},	1, 3, 5, 2, "Mars vs. Hercule",	{		{ "Mars",		specs+16, N_B, 13, 30, 2, 0 },		{ "Hercule",		specs+17, N_F,  3, 41, 2, 0 }	},	5, 3, 5, 2, "Ambuscade vs. Baionnaise",	{		{ "Ambuscade",		specs+18, N_B, 13, 30, 2, 0 },		{ "Baionnaise",		specs+19, N_F,  3, 41, 2, 0 }	},	1, 5, 6, 2, "Constellation vs. Insurgent",	{		{ "Constellation",	specs+20, N_A,  9, 50, 8, 0 },		{ "Insurgent",		specs+22, N_F,  4, 24, 2, 0 }	},	1, 3, 5, 2, "Constellation vs. Vengeance",	{		{ "Constellation",	specs+20, N_A, 12, 40, 2, 0 },		{ "Vengeance",		specs+21, N_F,  1, 43, 2, 0 }	},	1, 3, 6, 10, "The Battle of Lissa",	{		{ "Amphion",		specs+23, N_B,  8, 50, 4, 0 },		{ "Active",		specs+24, N_B,  6, 48, 4, 0 },		{ "Volage",		specs+25, N_B,  4, 46, 4, 0 },		{ "Cerberus",		specs+26, N_B,  2, 44, 4, 0 },		{ "Favorite",		specs+27, N_F,  9, 34, 2, 0 },		{ "Flore",		specs+21, N_F, 13, 39, 2, 0 },		{ "Danae",		specs+64, N_F, 15, 37, 2, 0 },		{ "Bellona",		specs+28, N_F, 17, 35, 2, 0 },		{ "Corona",		specs+29, N_F, 12, 31, 2, 0 },		{ "Carolina",		specs+30, N_F, 15, 28, 2, 0 }	},	2, 5, 6, 2, "Constitution vs. Guerriere",	{		{ "Constitution",	specs+31, N_A,  7, 35, 1, 0 },		{ "Guerriere",		specs+32, N_B,  7, 47, 4, 0 }	},	1, 3, 5, 2, "United States vs. Macedonian",	{		{ "United States",	specs+33, N_A,  1, 52, 6, 0 },		{ "Macedonian",		specs+34, N_B, 14, 40, 1, 0 }	},	1, 3, 6, 2, "Constitution vs. Java",	{		{ "Constitution",	specs+31, N_A,  1, 40, 2, 0 },		{ "Java",		specs+35, N_B, 11, 40, 2, 0 }	},	1, 3, 5, 2, "Chesapeake vs. Shannon",	{		{ "Chesapeake",		specs+36, N_A, 13, 40, 2, 0 },		{ "Shannon",		specs+37, N_B,  1, 42, 2, 0 }	},	1, 1, 6, 5, "The Battle of Lake Erie",	{		{ "Lawrence",		specs+38, N_A,  4, 55, 8, 0 },		{ "Niagara",		specs+42, N_A,  7, 61, 8, 0 },		{ "Lady Prevost",	specs+39, N_B,  4, 25, 2, 0 },		{ "Detroit",		specs+40, N_B,  7, 22, 2, 0 },		{ "Q. Charlotte",	specs+41, N_B, 10, 19, 2, 0 }	},	1, 1, 5, 2, "Wasp vs. Reindeer",	{		{ "Wasp",		specs+42, N_A,  3, 41, 2, 0 },		{ "Reindeer",		specs+43, N_B, 10, 48, 2, 0 }	},	1, 2, 5, 3, "Constitution vs. Cyane and Levant",	{		{ "Constitution",	specs+31, N_A, 10, 45, 2, 0 },		{ "Cyane",		specs+44, N_B,  3, 37, 2, 0 },		{ "Levant",		specs+45, N_B,  5, 35, 2, 0 }	},	5, 5, 5, 3, "Pellew vs. Droits de L'Homme",	{		{ "Indefatigable",	specs+46, N_B, 12, 45, 6, 0 },		{ "Amazon",		specs+47, N_B,  9, 48, 6, 0 },		{ "Droits L'Hom",	specs+48, N_F,  3, 28, 5, 0 }	},	2, 2, 3, 10, "Algeciras",	{		{ "Caesar",		specs+49, N_B,  7, 70, 6, 0 },		{ "Pompee",		specs+50, N_B,  5, 72, 6, 0 },		{ "Spencer",		specs+5,  N_B,  3, 74, 6, 0 },		{ "Hannibal",		specs+7,  N_B,  1, 76, 6, 0 },		{ "Real-Carlos",	specs+53, N_S,  9, 20, 3, 0 },		{ "San Fernando",	specs+54, N_S, 11, 16, 3, 0 },		{ "Argonauta",		specs+55, N_S, 10, 14, 4, 0 },		{ "San Augustine",	specs+56, N_S,  6, 22, 4, 0 },		{ "Indomptable",	specs+51, N_F,  7, 23, 5, 0 },		{ "Desaix",		specs+52, N_F,  7, 27, 7, 0 }	},	5, 3, 6, 7, "Lake Champlain",	{		{ "Saratoga",		specs+60, N_A,  8, 10, 1, 0 },		{ "Eagle",		specs+61, N_A,  9, 13, 2, 0 },		{ "Ticonderoga",	specs+62, N_A, 12, 17, 3, 0 },		{ "Preble",		specs+63, N_A, 14, 20, 2, 0 },		{ "Confiance",		specs+57, N_B,  4, 70, 6, 0 },		{ "Linnet",		specs+58, N_B,  7, 68, 6, 0 },		{ "Chubb",		specs+59, N_B, 10, 65, 6, 0 }	},	5, 3, 6, 4, "Last Voyage of the USS President",	{		{ "President",		specs+67, N_A, 12, 42, 5, 0 },		{ "Endymion",		specs+64, N_B,  5, 42, 5, 0 },		{ "Pomone",		specs+65, N_B,  7, 82, 6, 0 },		{ "Tenedos",		specs+66, N_B,  7, -1, 4, 0 }	},	7, 5, 5, 2, "Hornblower and the Natividad",	{		{ "Lydia",		specs+68, N_B, 12, 40, 2, 0 },		{ "Natividad",		specs+69, N_S,  2, 40, 4, 0 }	},	1, 3, 6, 2, "Curse of the Flying Dutchman",	{		{ "Piece of Cake",	specs+19, N_S,  7, 40, 2, 0 },		{ "Flying Dutchy",	specs+71, N_F,  7, 41, 1, 0 }	},	1, 4, 1, 4, "The South Pacific",	{		{ "USS Scurvy",		specs+70, N_A,  7, 40, 1, 0 },		{ "HMS Tahiti",		specs+71, N_B, 12, 60, 1, 0 },		{ "Australian",		specs+18, N_S,  5, 20, 8, 0 },		{ "Bikini Atoll",	specs+63, N_F,  2, 60, 4, 0 }	},	7, 3, 6, 5, "Hornblower and the battle of Rosas bay",	{		{ "Sutherland",		specs+5,  N_B, 13, 30, 2, 0 },		{ "Turenne",		specs+10, N_F,  9, 35, 6, 0 },		{ "Nightmare",		specs+9,  N_F,  7, 37, 6, 0 },		{ "Paris",		specs+53, N_F,  3, 45, 4, 0 },		{ "Napolean",		specs+56, N_F,  1, 40, 6, 0 }	},	6, 4, 7, 5, "Cape Horn",	{		{ "Concord",		specs+51, N_A,  3, 20, 4, 0 },		{ "Berkeley",		specs+7,  N_A,  5, 50, 5, 0 },		{ "Thames",		specs+71, N_B, 10, 40, 1, 0 },		{ "Madrid",		specs+53, N_S, 13, 60, 8, 0 },		{ "Musket",		specs+10, N_F, 10, 60, 7, 0 }	},	8, 3, 7, 3, "New Orleans",	{		{ "Alligator",		specs+71, N_A, 13,  5, 1, 0 },		{ "Firefly",		specs+50, N_B, 10, 20, 8, 0 },		{ "Cypress",		specs+46, N_B,  5, 10, 6, 0 }	},	5, 3, 7, 3, "Botany Bay",	{		{ "Shark",		specs+11, N_B,  6, 15, 4, 0 },		{ "Coral Snake",	specs+31, N_F,  3, 30, 6, 0 },		{ "Sea Lion",		specs+33, N_F, 13, 50, 8, 0 }	},	4, 3, 6, 4, "Voyage to the Bottom of the Sea",	{		{ "Seaview",		specs+71, N_A,  6, 3,  3, 0 },		{ "Flying Sub",		specs+64, N_A,  8, 3,  3, 0 },		{ "Mermaid",		specs+70, N_B,  2, 5,  5, 0 },		{ "Giant Squid",	specs+53, N_S, 10, 30, 8, 0 }	},	7, 3, 6, 3, "Frigate Action",	{		{ "Killdeer",		specs+21, N_A,  7, 20, 8, 0 },		{ "Sandpiper",		specs+27, N_B,  5, 40, 8, 0 },		{ "Curlew",		specs+34, N_S, 10, 60, 8, 0 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -