Changeset 4746 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/camera.cc
r4490 r4746 33 33 \brief creates a Camera 34 34 */ 35 Camera::Camera( void)35 Camera::Camera() 36 36 { 37 37 this->setClassID(CL_CAMERA, "Camera"); … … 55 55 \brief default destructor 56 56 */ 57 Camera::~Camera( void)57 Camera::~Camera() 58 58 { 59 59 EventHandler::getInstance()->unsubscribe(this); … … 72 72 \returns The PNode of the Target (from there you can get position and so on 73 73 */ 74 PNode* Camera::getTarget( void)74 PNode* Camera::getTarget() 75 75 { 76 76 return (PNode*)this->target; -
orxonox/trunk/src/world_entities/camera.h
r4592 r4746 33 33 { 34 34 public: 35 Camera( void);36 virtual ~Camera( void);35 Camera(); 36 virtual ~Camera(); 37 37 38 38 void lookAt(PNode* target); … … 45 45 void setViewMode(ViewMode mode); 46 46 void tick(float dt); 47 void apply ( void);47 void apply (); 48 48 49 49 void process(const Event &event); … … 67 67 68 68 private: 69 CameraTarget( void);69 CameraTarget(); 70 70 71 71 public: 72 virtual ~CameraTarget( void);72 virtual ~CameraTarget(); 73 73 }; 74 74 -
orxonox/trunk/src/world_entities/npc.h
r3544 r4746 20 20 float zCor; 21 21 22 void drawNPC( void);23 void paint( void);22 void drawNPC(); 23 void paint(); 24 24 void setPosition(float x, float y, float z); 25 25 void getPosition(float* x, float* y, float* z); 26 26 void addAI(AI* ai); 27 27 void setCollisionRadius(float r); 28 float getCollisionRadius( void);29 int hit( void);30 void die( void);28 float getCollisionRadius(); 29 int hit(); 30 void die(); 31 31 32 32 private: -
orxonox/trunk/src/world_entities/player.h
r4404 r4746 65 65 66 66 void move(float time); 67 void weapon( void);67 void weapon(); 68 68 69 69 }; -
orxonox/trunk/src/world_entities/skybox.cc
r4680 r4746 68 68 } 69 69 70 void SkyBox::preInit( void)70 void SkyBox::preInit() 71 71 { 72 72 this->setClassID(CL_SKYBOX, "SkyBox"); … … 86 86 } 87 87 88 void SkyBox::postInit( void)88 void SkyBox::postInit() 89 89 { 90 90 this->rebuild(); -
orxonox/trunk/src/world_entities/skybox.h
r4680 r4746 26 26 virtual ~SkyBox(); 27 27 28 void preInit( void);28 void preInit(); 29 29 30 30 void loadParams(const TiXmlElement* root); 31 31 32 void postInit( void);32 void postInit(); 33 33 34 34 -
orxonox/trunk/src/world_entities/terrain.cc
r4607 r4746 73 73 74 74 */ 75 Terrain::~Terrain ( void)75 Terrain::~Terrain () 76 76 { 77 77 if (objectList) … … 80 80 81 81 82 void Terrain::init( void)82 void Terrain::init() 83 83 { 84 84 this->setClassID(CL_TERRAIN, "Terrain"); -
orxonox/trunk/src/world_entities/terrain.h
r4607 r4746 28 28 Terrain(const char* fileName); 29 29 Terrain(DebugTerrain debugTerrain); 30 virtual ~Terrain( void);30 virtual ~Terrain(); 31 31 32 void init( void);32 void init(); 33 33 void loadParams(const TiXmlElement* root); 34 34 -
orxonox/trunk/src/world_entities/test_gun.h
r3888 r4746 40 40 virtual ~TestGun (); 41 41 42 virtual void activate( void);43 virtual void deactivate( void);42 virtual void activate(); 43 virtual void deactivate(); 44 44 45 virtual void fire( void);45 virtual void fire(); 46 46 virtual void hit (WorldEntity* weapon, Vector* loc); 47 virtual void destroy( void);47 virtual void destroy(); 48 48 49 49 virtual void tick(float time); 50 virtual void weaponIdle( void);51 virtual void draw( void);50 virtual void weaponIdle(); 51 virtual void draw(); 52 52 53 53 -
orxonox/trunk/src/world_entities/weapon.h
r4597 r4746 109 109 virtual ~Weapon (); 110 110 111 void enable( void);112 void disable( void);113 bool isEnabled( void);111 void enable(); 112 void disable(); 113 bool isEnabled(); 114 114 115 115 void setProjectile(Projectile* projectile); 116 Projectile* getProjectile( void);116 Projectile* getProjectile(); 117 117 118 virtual void activate( void);119 virtual void deactivate( void);120 bool isActive( void);118 virtual void activate(); 119 virtual void deactivate(); 120 bool isActive(); 121 121 122 122 … … 136 136 shoot again 137 137 */ 138 inline float getWeaponIdleTime( void) const { return this->idleTime;}138 inline float getWeaponIdleTime() const { return this->idleTime;} 139 139 /** 140 140 \brief checks if the idle time is elapsed … … 144 144 shoot again 145 145 */ 146 inline bool hasWeaponIdleTimeElapsed( void) const { return (this->localTime>this->idleTime)?true:false; }146 inline bool hasWeaponIdleTimeElapsed() const { return (this->localTime>this->idleTime)?true:false; } 147 147 148 148 /** … … 151 151 this is called from the player.cc, when fire-button is been pushed 152 152 */ 153 virtual void fire( void) = 0;153 virtual void fire() = 0; 154 154 virtual void hit (WorldEntity* weapon, Vector* loc); 155 virtual void destroy( void);155 virtual void destroy(); 156 156 157 157 virtual void tick(float time); 158 virtual void weaponIdle( void);159 virtual void draw( void);158 virtual void weaponIdle(); 159 virtual void draw(); 160 160 161 161 protected: -
orxonox/trunk/src/world_entities/world_entity.h
r4689 r4746 51 51 52 52 /** \returns the Count of Faces on this WorldEntity */ 53 virtual unsigned int getFaceCount ( void) const { if (this->model) return this->model->getFaceCount(); else return 0; };53 virtual unsigned int getFaceCount () const { if (this->model) return this->model->getFaceCount(); else return 0; }; 54 54 55 55 void processDraw ();
Note: See TracChangeset
for help on using the changeset viewer.