www.pudn.com > Product_Submit2004.rar > Dude.h, change:2004-05-10,size:655b


// Dedicated User Defined Entity 
 
#ifndef DUDE_H 
#define DUDE_H 
 
#include "../Globals.h" 
#include "../TOOLS/Trick.h" 
 
class Dude { 
public: 
	Dude() {currentTrick = NULL; headTrick = NULL;} 
  virtual ~Dude() {} 
 
  virtual void NewGoHomeModel() {} 
	virtual void NewReadyModel() {} 
	virtual void NewPlayingModel() {} 
  virtual Trick* GetCurrentTrick() { return currentTrick; } 
 
  void ChangeTrick(Trick* ¤tTrick, Trick* newTrick) { 
    currentTrick->Abort(); 
    delete currentTrick; 
    currentTrick = newTrick; 
    currentTrick->Start(); 
  } 
 
protected: 
  Trick* currentTrick; 
  Trick* headTrick; 
 
}; 
 
#endif // DUDE_H