void AIUpdate() { if (IsTimerFinished(SpeechTimer)) Speech(); if (IsTimerFinished(VoidTimer)) VoidZoneArc(); ParentClass::AIUpdate(); }
void appAction(const char *action) { if(!action) g_currentAction[0] = '\0'; else if(strcmp(action, "Speech")==0) { Speech(); g_currentAction[0] = '\0'; } else { strcpy(g_currentAction, action); __android_log_print(ANDROID_LOG_INFO, "MP sample", "appAction(): action=%s\n", g_currentAction); } }
static void checkAction() { if(g_currentAction[0] == '\0') return; if(strcmp(g_currentAction, "Hair")==0) Hair(); else if(strcmp(g_currentAction, "Glasses")==0) Glasses(); else if(strcmp(g_currentAction, "Beard")==0) Beard(); else if(strcmp(g_currentAction, "Eye")==0) CloseEye(); else if(strcmp(g_currentAction, "Speech")==0) Speech(); else if(strcmp(g_currentAction, "Display Expression")==0) DisplayExpression(); else if(strcmp(g_currentAction, "Cancel Expression")==0) CancelExpression(); else if(strcmp(g_currentAction, "Change Avatar")==0) Face(); g_currentAction[0] = '\0'; }