Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/battlestar Add missing initialisers (avoid gcc -W warn...



details:   https://anonhg.NetBSD.org/src/rev/30d0c3eb8324
branches:  trunk
changeset: 497062:30d0c3eb8324
user:      jsm <jsm%NetBSD.org@localhost>
date:      Mon Sep 18 06:14:31 2000 +0000

description:
Add missing initialisers (avoid gcc -W warnings) and comments giving
room numbers.

diffstat:

 games/battlestar/dayfile.c   |  831 ++++++++++++++++++++++++++++--------------
 games/battlestar/nightfile.c |  831 ++++++++++++++++++++++++++++--------------
 2 files changed, 1106 insertions(+), 556 deletions(-)

diffs (truncated from 3448 to 300 lines):

diff -r cbea27fca1f7 -r 30d0c3eb8324 games/battlestar/dayfile.c
--- a/games/battlestar/dayfile.c        Sun Sep 17 23:04:17 2000 +0000
+++ b/games/battlestar/dayfile.c        Mon Sep 18 06:14:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dayfile.c,v 1.10 2000/09/10 10:52:56 jsm Exp $ */
+/*     $NetBSD: dayfile.c,v 1.11 2000/09/18 06:14:31 jsm Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,122 +38,144 @@
 #if 0
 static char sccsid[] = "@(#)dayfile.c  8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: dayfile.c,v 1.10 2000/09/10 10:52:56 jsm Exp $");
+__RCSID("$NetBSD: dayfile.c,v 1.11 2000/09/18 06:14:31 jsm Exp $");
 #endif
 #endif                         /* not lint */
 
 #include "extern.h"
 
 struct room dayfile[] = {
-       {0},
+       {0, {0}, 0, {0} },
+       /* 1 */
        {"You are in the main hangar.",
                {5, 2, 9, 3, 3, 1, 0, 0},
        "This is a huge bay where many fighters and cargo craft lie.  Alarms are \n\
 sounding and fighter pilots are running to their ships.  Above is a gallery\n\
 overlooking the bay. The scream of turbo engines is coming from +. The rest\n\
-of the hangar is +. There is an exit +.*\n"},
+of the hangar is +. There is an exit +.*\n", {0} },
+       /* 2 */
        {"This is the landing bay.",
                {1, 0, 10, 0, 0, 0, 0, 0},
        "Ships are landing here, some heavily damaged. Enemy fighters continually\n\
 strafe this vulnerable port. The main hangar is +. *\n\
-There is an exit +.*\n"},
+There is an exit +.*\n", {0} },
+       /* 3 */
        {"You are in the gallery.",
                {4, 0, 0, 0, 0, 0, 1, 0},
        "From here a view of the entire landing bay reveals that our battlestar\n\
 is near destruction. Fires are spreading out of control and laser blasts\n\
-lick at the shadows. The control room is +. ***\n"},
+lick at the shadows. The control room is +. ***\n", {0} },
+       /* 4 */
        {"You are in the control room.",
                {0, 3, 0, 0, 0, 0, 5, 0},
        "Several frantic technicians are flipping switches wildly but otherwise\n\
 this room seems fairly deserted.  A weapons locker has been left open.\n\
-A staircase leads down. * There is a way -. **        \n"},
+A staircase leads down. * There is a way -. **        \n", {0} },
+       /* 5 */
        {"This is the launch room.",
                {6, 1, 7, 0, 4, 1, 0, 0},
        "From the launch tubes here fighters blast off into space. Only one is left,\n\
 and it is guarded by two fierce men. A staircase leads up from here.\n\
 There is a cluttered workbench +. From the main hangar come sounds of great\n\
-explosions.  The main hangar is +. The viper launch tubes are -.*\n"},
+explosions.  The main hangar is +. The viper launch tubes are -.*\n", {0} },
+       /* 6 */
        {"You are at the workbench.",
                {0, 5, 7, 0, 0, 0, 0, 0},
        "Strange and unwieldy tools are arranged here including a lunch box \n\
 and pneumatic wrenches and turbo sprocket rockets.*\n\
-The launch room is +. The remaining viper is +.*\n"},
+The launch room is +. The remaining viper is +.*\n", {0} },
+       /* 7 */
        {"You are in the viper launch tube.",
                {0, 5, 0, 5, 32, 0, 0, 0},
-       "The two guards are eyeing you warily! ****\n"},
+       "The two guards are eyeing you warily! ****\n", {0} },
+       /* 8 */
        {"This is a walk in closet.",
                {22, 0, 0, 0, 0, 0, 0, 0},
        "A wardrobe of immense magnitude greets the eye.  Furs and robes of kings\n\
 hang on rack after rack.  Silken gowns, capes woven with spun gold, and \n\
-delicate synthetic fabrics are stowed here.  The bedroom is +.***\n"},
+delicate synthetic fabrics are stowed here.  The bedroom is +.***\n", {0} },
+       /* 9 */
        {"You are in a wide hallway leading to the main hangar.",
                {0, 0, 11, 1, 0, 0, 0, 0},
        "The walls and ceiling here have been blasted through in several places.\n\
 It looks as if quite a battle has been fought for possession of the landing bay\n\
 Gaping corpses litter the floor.**  The hallway continues +.\n\
-The main hangar is +.\n"},
+The main hangar is +.\n", {0} },
+       /* 10 */
        {"You are in a wide hallway leading to the landing bay.",
                {0, 0, 12, 2, 0, 0, 0, 0},
        "Most of the men and supplies needed in the main hangar come through this\n\
 corridor, but the wounded are forced to use it too. It very dank and\n\
 crowded here, and the floor is slippery with blood.**\n\
-The hallway continues -. The landing bay is +.\n"},
+The hallway continues -. The landing bay is +.\n", {0} },
+       /* 11 */
        {"The hallway is very congested with rubble here.",
                {0, 0, 0, 9, 13, 1, 0, 0},
        "It is too choked with broken steel girders and other debris to continue\n\
 on much farther. Above, the ceiling has caved in and it is possible to \n\
 climb up. There is not much chance to go -, -, or -.\n\
-But the hallway seems clearer +.\n"},
+But the hallway seems clearer +.\n", {0} },
+       /* 12 */
        {"A wide hallway and a more narrow walkway meet here.",
                {14, 15, 0, 10, 0, 0, 0, 0},
        "The intersection is crowded with the many wounded who have come up\n\
 the wide hallway and continued +. The walkway is less crowded +.\n\
-The wide hallway goes *-.\n"},
+The wide hallway goes *-.\n", {0} },
+       /* 13 */
        {"You are in what was once an elegant stateroom.",
                {16, 0, 0, 0, 0, 0, 11, 0},
        "Whoever lived in this stateroom, he and his female companion\n\
 were mercilessly slain in their sleep. Clothes, trinkets and personal\n\
 belongings are scattered all across the floor. Through a hole in the\n\
-collapsed floor I can see a hallway below.  A door is +.***\n"},
+collapsed floor I can see a hallway below.  A door is +.***\n", {0} },
+       /* 14 */
        {"You're at the entrance to the sick bay.",
                {17, 12, 18, 0, 0, 0, 0, 0},
        "The wounded are entering the sick bay in loudly moaning files.\n\
 The walkway continues - and +. A doctor is motioning for you to \n\
-come to the -. *\n"},
+come to the -. *\n", {0} },
+       /* 15 */
        {"You're in the walkway.",
                {12, 19, 0, 0, 0, 0, 0, 0},
        "Most of the men and supplies were coming from the armory. The walkway\n\
-continues -. The armory is +.**\n"},
+continues -. The armory is +.**\n", {0} },
+       /* 16 */
        {"These are the executive suites of the battlestar.",
                {20, 13, 21, 22, 23, 1, 24, 0},
        "Luxurious staterooms carpeted with crushed velvet and adorned with beaten\n\
 gold open onto this parlor. A wide staircase with ivory banisters leads\n\
 up or down. This parlor leads into a hallway +. The bridal suite is\n\
-+. Other rooms lie - and +.\n"},
++. Other rooms lie - and +.\n", {0} },
+       /* 17 */
        {"You're in a long dimly lit hallway.",
                {0, 14, 25, 0, 0, 0, 0, 0},
        "This part of the walkway is deserted. There is a dead end +. The\n\
-entrance to the sickbay is +. The walkway turns sharply -.*\n"},
+entrance to the sickbay is +. The walkway turns sharply -.*\n", {0} },
+       /* 18 */
        {"This is the sick bay.",
                {0, 0, 0, 14, 0, 0, 0, 0},
        "Sinister nurses with long needles and pitiful aim probe the depths of suffering\n\
 here. Only the mortally wounded receive medical attention on a battlestar,\n\
 but afterwards they are thrown into the incinerators along with the rest.**\n\
-Nothing but death and suffering +.  The walkway is +.\n"},
+Nothing but death and suffering +.  The walkway is +.\n", {0} },
+       /* 19 */
        {"You're in the armory.",
                {15, 26, 0, 0, 0, 0, 0, 0},
        "An armed guard is stationed here 365 sectars a yarn to protect the magazine.\n\
-The walkway is +. The magazine is +.**\n"},
+The walkway is +. The magazine is +.**\n", {0} },
+       /* 20 */
        {"The hallway ends here at the presidential suite.",
                {27, 16, 0, 0, 0, 0, 0, 0},
        "The door to this suite is made from solid magnesium, and the entryway is\n\
 inlaid with diamonds and fire opals. The door is ajar +. The hallway\n\
-goes -.**\n"},
+goes -.**\n", {0} },
+       /* 21 */
        {"This is the maid's utility room.",
                {0, 0, 0, 16, 0, 0, 0, 0},
        "What a gruesome sight! The maid has been brutally drowned in a bucket of\n\
 Pine Sol and repeatedly stabbed in the back with a knife.***\n\
-The hallway is +.\n"},
+The hallway is +.\n", {0} },
+       /* 22 */
        {"This is a luxurious stateroom.",
                {0, 8, 16, 0, 0, 0, 0, 0},
        "The floor is carpeted with a soft animal fur and the great wooden furniture\n\
@@ -161,1052 +183,1305 @@
 into the walls and ceiling is flashing wildly.  The floor shudders and\n\
 the sounds of dull explosions rumble though the room.  From a window in\n\
 the wall + comes a view of darkest space.  There is a small adjoining\n\
-room +, and a doorway +.*\n"},
+room +, and a doorway +.*\n", {0} },
+       /* 23 */
        {"You are at the entrance to the dining hall.",
                {0, 0, 28, 0, 0, 0, 16, 0},
        "A wide staircase with ebony banisters leads down here.**\n\
-The dining hall is -.*\n"},
+The dining hall is -.*\n", {0} },
+       /* 24 */
        {"This was once the first class lounge.",
                {0, 0, 29, 0, 16, 1, 0, 0},
        "There is much rubble and destruction here that was not apparent elsewhere.\n\
 The walls and ceilings have broken in in some places. A staircase with\n\
 red coral banisters leads up. It is impossible to go - or -.\n\
-It seems a little clearer +.*\n"},
+It seems a little clearer +.*\n", {0} },
+       /* 25 */
        {"You are in a narrow stairwell.",
                {0, 17, 0, 0, 30, 1, 0, 0},
        "These dusty and decrepit stairs lead up.  There is no way -.  The\n\
-hallway turns sharply -.**\n"},
+hallway turns sharply -.**\n", {0} },
+       /* 26 */
        {"You are in the magazine.",
                {19, 0, 0, 0, 0, 0, 0, 0},
        "Rows and rows of neatly stacked ammunition for laser pistols and grenade\n\
-launchers are here. The armory is +.***\n"},
+launchers are here. The armory is +.***\n", {0} },
+       /* 27 */
        {"You're in the presidential suite.",
                {0, 20, 0, 0, 0, 0, 0, 0},
        "Apparently the president has been assassinated. A scorched figure lies\n\
 face downward on the carpet clutching his chest.*\n\
-The hallway leads -.**\n"},
+The hallway leads -.**\n", {0} },
+       /* 28 */
        {"You are in the dining hall.",
                {0, 30, 31, 23, 0, 0, 0, 0},
        "This was the scene of a mass suicide. Hundreds of ambassadors and assorted\n\
 dignitaries sit slumped over their breakfast cereal. I suppose the news\n\
 of the cylon attack killed them. There is a strange chill in this room.  I\n\
-would not linger here. * The kitchen is +. Entrances + and +.\n"},
+would not linger here. * The kitchen is +. Entrances + and +.\n", {0} },
+       /* 29 */
        {"The debris is very thick here.",
                {0, 11, 0, 24, 0, 0, 0, 0},
        "Broken furniture, fallen girders, and other rubble block the way.\n\
 There is not much chance to continue -, -, or -.\n\
-It would be best to go -.\n"},
+It would be best to go -.\n", {0} },
+       /* 30 */
        {"You are in the kitchen.",
                {28, 0, 0, 0, 0, 0, 0, 0},
        "This room is full of shining stainless steel and burnished bronze cookware. An \n\
 assortment of tropical fruits and vegetables as well as fine meats and cheeses \n\
 lies on a sterling platter. The chef, unfortunately, has been skewered like a \n\
-side of beef. The dining room is +. ** There is a locked door +.\n"},
+side of beef. The dining room is +. ** There is a locked door +.\n", {0} },
+       /* 31 */
        {"You are in an arched entry leading to the dining room.",
                {0, 0, 0, 28, 0, 0, 0, 0},
        "The door leading out is bolted shut from the outside and is very strong.***\n\
-The dining room is +.\n"},
+The dining room is +.\n", {0} },
+       /* 32 */
        {"You are in space.",
                {33, 34, 35, 36, 37, 1, 33, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 33 */
        {"You are in space.",
                {38, 32, 39, 40, 41, 1, 42, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 34 */
        {"You are in space.",
                {32, 44, 45, 46, 47, 1, 48, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 35 */
        {"You are in space.",
                {40, 45, 49, 32, 50, 1, 51, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 36 */
        {"You are in space.",
                {41, 46, 32, 52, 53, 1, 54, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 37 */
        {"You are in space.",
                {42, 47, 50, 53, 55, 1, 32, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 38 */
        {"You are in space.",
                {43, 48, 51, 54, 32, 1, 56, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 39 */
        {"You are in space.",
                {57, 33, 40, 41, 42, 1, 43, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 40 */
        {"You are in space.",
                {39, 35, 57, 33, 58, 1, 59, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 41 */
        {"You are in space.",
                {39, 36, 33, 59, 60, 1, 61, 1},
-       "****\n"},
+       "****\n", {0} },
+       /* 42 */
        {"You are in space.",
                {39, 37, 58, 60, 62, 1, 33, 1},
-       "****\n"},
+       "****\n", {0} },



Home | Main Index | Thread Index | Old Index