示例#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;

}