Home | History | Annotate | Download | only in trek

Lines Matching refs:Game

52 **  INITIALIZE THE GAME
54 ** The length, skill, and password are read, and the game
59 ** Game restart and tournament games are handled here.
93 r = getcodpar("What length game", Lentab);
94 Game.length = (long) r->value;
95 if (Game.length == 0) {
102 r = getcodpar("What skill game", Skitab);
103 Game.skill = (long) r->value;
104 Game.tourn = 0;
105 getstrpar("Enter a password", Game.passwd, 14, 0);
106 if (strcmp(Game.passwd, "tournament") == 0) {
107 getstrpar("Enter tournament code", Game.passwd, 14, 0);
108 Game.tourn = 1;
110 for (i = 0; Game.passwd[i]; i++)
111 d += Game.passwd[i] << i;
114 Param.bases = Now.bases = ranf(6 - Game.skill) + 2;
115 if (Game.skill == 6)
117 Param.time = Now.time = 6.0 * Game.length + 2.0;
118 i = Game.skill;
119 j = Game.length;
131 Param.reserves = Ship.reserves = (6 - Game.skill) * 2.0;
142 f = Game.skill;
169 Param.regenfac = (5 - Game.skill) * 0.05;
175 i = Game.skill;
189 Param.moveprob[KM_EA] = 25 + 5 * Game.skill;
190 Param.movefac[KM_EA] = -0.06 * Game.skill;
193 Param.moveprob[KM_LA] = 10 + 10 * Game.skill;
219 Game.killk = Game.kills = Game.killb = 0;
220 Game.deaths = Game.negenbar = 0;
221 Game.captives = 0;
222 Game.killinhab = 0;
223 Game.helps = 0;
224 Game.killed = 0;
225 Game.snap = 0;