1*32689Sbostic /* 2*32689Sbostic * main.c 3*32689Sbostic * 4*32689Sbostic * This source herein may be modified and/or distributed by anybody who 5*32689Sbostic * so desires, with the following restrictions: 6*32689Sbostic * 1.) No portion of this notice shall be removed. 7*32689Sbostic * 2.) Credit shall not be taken for the creation of this source. 8*32689Sbostic * 3.) This code is not to be traded, sold, or used for personal 9*32689Sbostic * gain or profit. 10*32689Sbostic * 11*32689Sbostic */ 12*32689Sbostic 13*32689Sbostic #ifndef lint 14*32689Sbostic static char sccsid[] = "@(#)main.c 5.1 (Berkeley) 11/25/87"; 15*32689Sbostic #endif /* not lint */ 16*32689Sbostic 17*32689Sbostic #include "rogue.h" 18*32689Sbostic 19*32689Sbostic extern short party_room; 20*32689Sbostic 21*32689Sbostic main(argc, argv) 22*32689Sbostic int argc; 23*32689Sbostic char *argv[]; 24*32689Sbostic { 25*32689Sbostic if (init(argc, argv)) { /* restored game */ 26*32689Sbostic goto PL; 27*32689Sbostic } 28*32689Sbostic 29*32689Sbostic for (;;) { 30*32689Sbostic clear_level(); 31*32689Sbostic make_level(); 32*32689Sbostic put_objects(); 33*32689Sbostic put_stairs(); 34*32689Sbostic add_traps(); 35*32689Sbostic put_mons(); 36*32689Sbostic put_player(party_room); 37*32689Sbostic print_stats(STAT_ALL); 38*32689Sbostic PL: 39*32689Sbostic play_level(); 40*32689Sbostic free_stuff(&level_objects); 41*32689Sbostic free_stuff(&level_monsters); 42*32689Sbostic } 43*32689Sbostic } 44