Public Member Functions | |
gAILog () | |
void | DeleteEntry () |
gAILogEntry & | NextEntry () |
void | Print () |
Public Attributes | |
gAILogEntry | entries [ENTRIES+1] |
int | current |
int | del |
Definition at line 1965 of file gAIBase.cpp.
gAILog::gAILog | ( | ) | [inline] |
void gAILog::DeleteEntry | ( | ) | [inline] |
Definition at line 1973 of file gAIBase.cpp.
Referenced by gAIPlayer::EmergencySurvive().
gAILogEntry& gAILog::NextEntry | ( | ) | [inline] |
Definition at line 1980 of file gAIBase.cpp.
References ENTRIES, se_GameTime(), and gAILogEntry::time.
Referenced by gAIPlayer::EmergencySurvive().
01981 { 01982 del = 0; 01983 01984 if (current >= ENTRIES) 01985 { 01986 for (int i=1; i<ENTRIES; i++) 01987 entries[i-1] = entries[i]; 01988 } 01989 else 01990 current++; 01991 01992 gAILogEntry& ret = entries[current-1]; 01993 ret.time = se_GameTime(); 01994 return ret; 01995 }
void gAILog::Print | ( | ) | [inline] |
Definition at line 1997 of file gAIBase.cpp.
References con, and DANGERLEVELS.
Referenced by gAIPlayer::EmergencySurvive(), gAIPlayer::RightBeforeDeath(), and gAIPlayer::Think().
01998 { 01999 #ifdef DEBUG 02000 con << "Log:\n"; 02001 for (int i = current + del - 1; i>=0; i--) 02002 { 02003 for (int j=0; j < DANGERLEVELS; j++) 02004 { 02005 con << entries[i].sideDanger[j][0] << ' '; 02006 con << entries[i].frontDanger[j] << ' '; 02007 con << entries[i].sideDanger[j][1] << " "; 02008 } 02009 con << entries[i].turn << ", " << entries[i].tries << "\n"; 02010 } 02011 #ifndef DEDICATED 02012 // se_PauseGameTimer(true); 02013 #endif 02014 #endif 02015 }
gAILogEntry gAILog::entries[ENTRIES+1] |
int gAILog::current |
int gAILog::del |
Definition at line 1969 of file gAIBase.cpp.