www.pudn.com > Product_Submit2004.rar > DudeList.h, change:2004-11-01,size:1851b


#ifndef _DUDELIST_H_DEFINED
#define _DUDELIST_H_DEFINED

#include "BallPredict.h"
#include "Battery.h"
#include "Bosnich.h"
#include "BruceLee.h"
#include "Calibrater.h"
#include "Dude.h"
#include "DudeList.h"
#include "EHCM.h"
#include "JetLi.h"
#include "LOCWMChal.h"
#include "NullDude.h"
#include "Penalty.h"
#include "RegionPlayer.h"
#include "Sleek.h"
#include "SpeedRacer.h"
#include "TestDudeV2.h"
#include "TestKicks.h"
#include "VisTest.h"
#include "Walker.h"

Dude* CreateDude(char* dudeName) {
  if (strcmp(dudeName,"BallPredict")==0) {
    return new BallPredict();
  } else if (strcmp(dudeName,"Battery")==0) {
    return new Battery();
  } else if (strcmp(dudeName,"Bosnich")==0) {
    return new Bosnich();
  } else if (strcmp(dudeName,"BruceLee")==0) {
    return new BruceLee();
  } else if (strcmp(dudeName,"Calibrater")==0) {
    return new Calibrater();
  } else if (strcmp(dudeName,"Dude")==0) {
    return new Dude();
  } else if (strcmp(dudeName,"EHCM")==0) {
    return new EHCM();
  } else if (strcmp(dudeName,"JetLi")==0) {
    return new JetLi();
  } else if (strcmp(dudeName,"LOCWMChal")==0) {
    return new LOCWMChal();
  } else if (strcmp(dudeName,"NullDude")==0) {
    return new NullDude();
  } else if (strcmp(dudeName,"Penalty")==0) {
    return new Penalty();
  } else if (strcmp(dudeName,"RegionPlayer")==0) {
    return new RegionPlayer();
  } else if (strcmp(dudeName,"Sleek")==0) {
    return new Sleek();
  } else if (strcmp(dudeName,"SpeedRacer")==0) {
    return new SpeedRacer();
  } else if (strcmp(dudeName,"TestDudeV2")==0) {
    return new TestDudeV2();
  } else if (strcmp(dudeName,"TestKicks")==0) {
    return new TestKicks();
  } else if (strcmp(dudeName,"VisTest")==0) {
    return new VisTest();
  } else if (strcmp(dudeName,"Walker")==0) {
    return new Walker();
  }
  return NULL;
}

#endif