Exemple #1
0
void EntityUpdate (void)
{

  CEntity*        e;

  for (e = head; e; e = e->Next ()) 
    e->Update ();

}
Exemple #2
0
void EntityTerm (void)
{

  CEntity*    e;
  CEntity*    next;

  e = head;
  while (e) {
    next = e->Next ();
    delete e;
    e = next;
  }

}
Exemple #3
0
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;

}