void EntityUpdate (void) { CEntity* e; for (e = head; e; e = e->Next ()) e->Update (); }
void EntityTerm (void) { CEntity* e; CEntity* next; e = head; while (e) { next = e->Next (); delete e; e = next; } }
CEntity* EntityFindType (char* type, CEntity* start) { CEntity* e; if (!start) start = head; for (e = start; e; e = e->Next ()) { if (!stricmp (type, e->Type ())) return e; } return NULL; }