예제 #1
0
void EntityUpdate (void)
{

  CEntity*        e;

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

}
예제 #2
0
void EntityTerm (void)
{

  CEntity*    e;
  CEntity*    next;

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

}
예제 #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;

}