Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/world_entities/weapon.cc
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/world_entities/weapon.cc
r3605 r3746 21 21 #include "world_entity.h" 22 22 #include "vector.h" 23 #include " objModel.h"23 #include "model.h" 24 24 #include "projectile.h" 25 #include "list.h" 26 #include "world.h" 25 27 26 28 using namespace std; … … 32 34 creates a new weapon 33 35 */ 34 Weapon::Weapon () : WorldEntity() 35 {} 36 Weapon::Weapon (PNode* parent, Vector* coordinate, Quaternion* direction) 37 : WorldEntity() 38 { 39 parent->addChild(this, PNODE_ROTATE_AND_MOVE); 40 this->setRelCoor(coordinate); 41 this->setRelDir(direction); 42 WorldInterface* wi = WorldInterface::getInstance(); 43 this->worldEntities = wi->getEntityList(); 44 } 36 45 37 46 … … 145 154 */ 146 155 void Weapon::setWeaponIdleTime(float time) 147 {} 156 { 157 this->idleTime = time; 158 } 148 159 149 160 /** … … 155 166 */ 156 167 float Weapon::getWeaponIdleTime(void) 157 {} 168 { 169 return this->idleTime; 170 } 158 171 159 172 /** … … 165 178 */ 166 179 bool Weapon::hasWeaponIdleTimeElapsed(void) 167 {} 180 { 181 return (this->localTime>this->idleTime)?true:false; 182 } 168 183 169 184
Note: See TracChangeset
for help on using the changeset viewer.