Beispiel #1
0
 void info()
 {
 #ifdef INFOSHOW
     int i;    
     DEBUGVAL(ifree);
     DEBUGVAL(idata);
     puts("====================\n"
         "index\tdata\tnext\n"
         "--------------------");
     for(i=0; i<MAXN; i++) {
         printf("%d\t%d\t%d\n", i, SLList[i].data, SLList[i].next);
     }
     puts("====================\n");
 #endif
 }
Beispiel #2
0
void updatePlayerStunned(character *c, float time) {
	if (c->status == STATUS_STUNNED) {
		DEBUGMSG("PlayerIsStunned\n");
		c->punchDuration = 0.0;
		c->blockChangeTime = 0.0;
		c->stunDuration += time;
		DEBUGVAL("Stun Duration:%f\n", c->stunDuration);
		if (c->stunDuration > c->stunMaxDuration) {
			c->status = STATUS_IDLE;
			c->stunDuration = 0;
		}
	}
}