From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_callsign_8cpp_source.html | 219 ++++++++++++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 Doc/doxygen/html/_callsign_8cpp_source.html (limited to 'Doc/doxygen/html/_callsign_8cpp_source.html') diff --git a/Doc/doxygen/html/_callsign_8cpp_source.html b/Doc/doxygen/html/_callsign_8cpp_source.html new file mode 100644 index 0000000..cd307be --- /dev/null +++ b/Doc/doxygen/html/_callsign_8cpp_source.html @@ -0,0 +1,219 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/Callsign.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Callsign.cpp
+
+
+Go to the documentation of this file.
1 /* Project Starshatter 4.5
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Stars.exe
+
6  FILE: Callsign.cpp
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Package Callsign catalog class
+
13 */
+
14 
+
15 #include "MemDebug.h"
+
16 #include "Callsign.h"
+
17 
+
18 // +----------------------------------------------------------------------+
+
19 
+
20 static int callsign_index = -1;
+
21 
+
22 static char civilian_catalog[32][16] = {
+
23  "Aleph", "Vehan", "Galvin", "Caleb",
+
24  "Mercury", "Lancet", "Hera", "Zeus",
+
25  "Odin", "Thor", "Nereus", "Klono",
+
26  "Athena", "Helios", "Leto", "Nivas",
+
27 
+
28  "Selene", "Proteus", "Triton", "Thetis",
+
29  "Aurora", "Ceres", "Rana", "Doradus",
+
30  "Perseus", "Corina", "Cygnus", "Lago",
+
31  "Andil", "Galen", "Temas", "Dalan"
+
32 };
+
33 
+
34 static char alliance_catalog[32][16] = {
+
35  "Alpha", "Bravo", "Delta", "Echo",
+
36  "Ranger", "Magic", "Falcon", "Omega",
+
37  "Vulcan", "Hammer", "Nomad", "Dragon",
+
38  "Sierra", "Tango", "Victor", "Zulu",
+
39 
+
40  "Sentry", "Wolf", "Zeta", "Jackal",
+
41  "Merlin", "Eagle", "Blade", "Tiger",
+
42  "Raptor", "Ares", "Condor", "Rogue",
+
43  "Hornet", "Gold", "Mustang", "Voodoo"
+
44 };
+
45 
+
46 static char hegemony_catalog[32][16] = {
+
47  "Nagal", "Nalak", "Olkar", "Kalar",
+
48  "Narom", "Tranor", "Orrin", "Orlak",
+
49  "Nardik", "Sorrin", "Amnar", "Kizek",
+
50  "Orten", "Ronar", "Molkar", "Ternal",
+
51 
+
52  "Martak", "Komar", "Malik", "Morgul",
+
53  "Kliek", "Torlan", "Arvin", "Artak",
+
54  "Ralka", "Sernal", "Roten", "Reza",
+
55  "Tinet", "Aliek", "Salar", "Sona"
+
56 };
+
57 
+
58 static char pirate_catalog[32][16] = {
+
59  "Raider", "Skull", "Black", "Blood",
+
60  "Roger", "Hook", "Galleon", "Privateer",
+
61  "Cutlass", "Sabre", "Pike", "Blackbeard",
+
62  "Pistol", "Cortez", "Pirate", "Buccaneer",
+
63 
+
64  "Raider", "Skull", "Black", "Blood",
+
65  "Morgan", "Redbeard", "Cutlass", "Sabre",
+
66  "Iron", "Stocks", "Quarter", "Gray",
+
67  "Ruby", "Cross", "Pirate", "Raider"
+
68 };
+
69 
+
70 static char zolon_catalog[32][16] = {
+
71  "Cancer", "Krill", "Bluefin", "Scylla",
+
72  "Charybdis","Finback", "Mantis", "Skate",
+
73  "Sealion", "Lamprey", "Tarpon", "Hammerhead",
+
74  "Orca", "Skipjack", "Sculpin", "Thresher",
+
75 
+
76  "Devilray", "Chinook", "Moray", "Seastar",
+
77  "Heron", "Puffin", "Rockeye", "Tiburon",
+
78  "Coho", "Stingray", "Mako", "Conger",
+
79  "Scad", "Pompano", "Tusk", "Nautilus"
+
80 };
+
81 
+
82 
+
83 // +----------------------------------------------------------------------+
+
84 
+
85 const char*
+ +
87 {
+
88  if (callsign_index < 0)
+
89  callsign_index = rand()/1000;
+
90 
+
91  if (callsign_index > 31)
+
92  callsign_index = 0;
+
93 
+
94  switch (IFF) {
+
95  case 0: return civilian_catalog[callsign_index++];
+
96  default:
+
97  case 1: return alliance_catalog[callsign_index++];
+
98  case 2: return hegemony_catalog[callsign_index++];
+
99  case 3: return pirate_catalog[callsign_index++];
+
100  case 4: return zolon_catalog[callsign_index++];
+
101  }
+
102 }
+
+
+ + + + -- cgit v1.1