예제 #1
0
파일: main.c 프로젝트: HunterZ/larn
static void run(int dir)
{
	int i;
	
	i = 1; 

	while (i) {
		
		i = moveplayer(dir);
		
		if (i > 0) {

			if (c[HASTEMONST]) {
				
				movemonst();
			}
			
			movemonst();
			randmonst();
			regen();
		}
		
		if (hitflag) {

			i = 0;
		}
		
		if (i != 0) {

			showcell(playerx,playery);
		}
	}
}
예제 #2
0
파일: main.c 프로젝트: ajinkya93/netbsd-src
void
parse2(void)
{
	if (c[HASTEMONST])
		movemonst();
	movemonst();		/* move the monsters		 */
	randmonst();
	regen();
}
예제 #3
0
파일: main.c 프로젝트: HunterZ/larn
void parse2(void)
{

	/* move the monsters */
	if (c[HASTEMONST]) {

		movemonst();
	}
	
	movemonst(); 
	
	randmonst();

	regen();
}