00001 #pragma once 00002 #include "ggraphicsobject.h" 00003 #include "GVec4f.h" 00004 #include "Constants.h" 00005 #include "GAnimatedMesh.h" 00006 00008 class Bullet :public GGraphicsObject 00009 { 00011 NxController *mController; 00012 public: 00014 HitCallBack myHitCallBack; 00016 Bullet(void); 00018 ~Bullet(void); 00020 int Draw(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS); 00022 int DrawSprites(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS); 00024 NxController *GetController(void); 00026 int SetController(NxController *); 00028 unsigned int texId; 00029 00031 GVec4f Direction; 00033 double CreationTime; 00035 double LifeTime; 00037 float Mass; 00038 00039 };