File: gc_appearance.c

package info (click to toggle)
geekcode 1.7.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 288 kB
  • ctags: 96
  • sloc: ansic: 2,940; makefile: 41
file content (188 lines) | stat: -rw-r--r-- 6,226 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/*
 gc_appearance.c - Functions for the Appearance section

 Geek Code Generator v1.7.3 - Generates your geek code
 Copyright (C) 1999-2003 Chris Gushue <chris@blackplasma.net>

 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.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <stdio.h>
#include "geekcode.h"

int get_dress(void)
{
   int selection = 99;

   do
     {
	clearscreen();
	printf("Dress                                                              Page %i of %i\n", PAGES-(PAGES-2), PAGES);
	printf("===============================================================================\n");
        printf(" 1 d++  I tend to wear conservative dress such as a business suit or\n");
        printf("        worse, a tie.\n");
        printf(" 2 d+   Good leisure-wear. Slacks, button-shirt, etc. No jeans, tennis\n");
        printf("        shoes, or t-shirts.\n");
        printf(" 3 d    I dress a lot like those found in catalog ads. Bland, boring,\n");
        printf("        without life or meaning.\n");
        printf(" 4 d-   I'm usually in jeans and a t-shirt.\n");
        printf(" 5 d--  My t-shirts go a step further and have a trendy political\n");
        printf("        message on them.\n");
        printf(" 6 d--- Punk dresser, including, but not limited to, torn jeans and\n");
        printf("        shirts, body piercings, and prominent tattoos.\n");
        printf(" 7 dx   Cross dresser.\n");
        printf(" 8 d?   I have no idea what I am wearing now, let alone what I wore yesterday.\n");
        printf(" 9 !d   No clothing. Quite a fashion statement, don't you think?\n");
        printf("10 dpu  I wear the same clothes all the time, no matter the occasion,\n");
        printf("        forgetting to do laundry between wearings.\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("Enter your Dress code number here [0 to quit]: ");
	scanf("%d", &selection);
	clear_kb();
     } while (selection < 0 || selection > 10);

   if (selection == 0)
	   exit(1);
   else
	   return selection;
}

int get_height(void)
{
   int selection  = 99;

   do
     {
	clearscreen();
	printf("Shape (height)                                                     Page %i of %i\n", PAGES-(PAGES-3), PAGES);
	printf("===============================================================================\n");
        printf("1 s+++ I usually have to duck through doors.\n");
        printf("2 s++  I'm a basketball candidate.\n");
        printf("3 s+   I'm a little taller than most.\n");
        printf("4 s    I'm an average geek.\n");
        printf("5 s-   I look up to most people.\n");
        printf("6 s--  I look up to damn near everybody.\n");
        printf("7 s--- I take a phone book with me when I go out so I can eat dinner.\n");
        printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
        printf("\n");
        printf("Enter your Shape (height) code number here [0 to quit]: ");
        scanf("%d", &selection);
	clear_kb();
     } while (selection < 0 || selection > 7);

   if (selection == 0)
	   exit(1);
   else
	   return selection;
}

int get_weight(void)
{
   int selection = 99;

   do
     {
	clearscreen();
	printf("Shape (weight)                                                     Page %i of %i\n", PAGES-(PAGES-4), PAGES);
	printf("===============================================================================\n");
        printf("1 s+++ I take up three movie seats.\n");
        printf("2 s++  I'm a linebacker candidate.\n");
        printf("3 s+   I'm a little rounder than most.\n");
        printf("4 s    I'm an average geek.\n");
        printf("5 s-   Everybody tells me to gain a few pounds.\n");
        printf("6 s--  I tend to have to fight against a strong breeze.\n");
        printf("7 s--- My bones are poking through my skin.\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
        printf("\n");
	printf("\n");
	printf("\n");
	printf("\n");
        printf("Enter your Shape (weight) code number here [0 to quit]: ");
        scanf("%d", &selection);
	clear_kb();
     } while (selection < 0 || selection > 7);

   if (selection == 0)
	   exit(1);
   else
	   return selection;
}

int get_age(void)
{
   int selection = 99;

   do
     {
	clearscreen();
	printf("Age                                                                Page %i of %i\n", PAGES-(PAGES-5), PAGES);
	printf("===============================================================================\n");
        printf(" 1 a+++   60 and up\n");
        printf(" 2 a++    50-59\n");
        printf(" 3 a+     40-49\n");
        printf(" 4 a      30-39\n");
        printf(" 5 a-     25-29\n");
        printf(" 6 a--    20-24\n");
        printf(" 7 a---   15-19\n");
        printf(" 8 a----  10-14\n");
        printf(" 9 a----- 9 and under (Geek in training?)\n");
        printf("10 a?     Immortal\n");
        printf("11 !a     It's none of your business how old I am\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("\n");
        printf("Enter your Age code number here [0 to quit]: ");
        scanf("%d", &selection);
	clear_kb();
     } while (selection < 0 || selection > 11);

   if (selection == 0)
	   exit(1);
   else
	   return selection;
}