00001 #pragma once 00002 #include "creature.h" 00003 #include "Gun.h" 00004 #include "GVec4f.h" 00005 #include "Crosshair.h" 00006 #include "GPhysicsManager.h" 00007 00008 class Player :public Creature 00009 { 00010 protected: 00011 int MaxGrenades; 00012 int CurrentGrenades; 00013 double GrenadeDelay; 00014 double LastGrenade; 00015 float ThrowDistance; 00016 00017 double OnSteroidsSince; 00018 double OnSteroidsUntil; 00019 00020 public: 00021 Player(void); 00022 ~Player(void); 00023 00024 int IncreaseThrowingDistance(float f); 00025 float GetThrowingDistance(void); 00026 int ResetThrowingDistance(void); 00027 int ThrowGrenade(float distance, double time, double dtime, int FLAGS); 00028 Crosshair *GetCrosshair(void); 00029 int GetMaxGrenades(void); 00030 int GetCurrentGrenades(void); 00031 void SetNbrGrenades(int _n); 00032 int Draw(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS); 00033 virtual int Damage(int); 00034 00035 int SetOnSteroids(double time, double duration); 00036 virtual int Update(double time, double dtime); 00037 };