Changeset 9131 in orxonox.OLD for branches/presentation/src/world_entities/weapons/laser_cannon.cc
- Timestamp:
- Jul 4, 2006, 2:43:20 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/laser_cannon.cc
r9127 r9131 1 2 3 1 /* 4 2 orxonox - the future of 3D-vertical-scrollers … … 21 19 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON 22 20 23 #include " test_gun.h"21 #include "laser_cannon.h" 24 22 #include "world_entities/projectiles/projectile.h" 25 23 … … 33 31 #include "fast_factory.h" 34 32 35 CREATE_FACTORY( TestGun, CL_TEST_GUN);33 CREATE_FACTORY(LaserCannon, CL_LASER_CANNON); 36 34 37 35 /** … … 40 38 creates a new weapon 41 39 */ 42 TestGun::TestGun ( int leftRight)40 LaserCannon::LaserCannon ( int leftRight) 43 41 : Weapon() 44 42 { … … 91 89 92 90 93 TestGun::TestGun(const TiXmlElement* root)91 LaserCannon::LaserCannon(const TiXmlElement* root) 94 92 { 95 93 this->init(); … … 101 99 * standard deconstructor 102 100 */ 103 TestGun::~TestGun ()101 LaserCannon::~LaserCannon () 104 102 { 105 103 // model will be deleted from WorldEntity-destructor … … 107 105 108 106 109 void TestGun::init()110 { 111 this->setClassID(CL_ TEST_GUN, "TestGun");112 113 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/ test_gun.obj", OBJ, RP_CAMPAIGN);114 115 this->loadModel("models/guns/ test_gun.obj");107 void LaserCannon::init() 108 { 109 this->setClassID(CL_LASER_CANNON, "LaserCannon"); 110 111 // this->model = (Model*)ResourceManager::getInstance()->load("models/guns/laser_cannon.obj", OBJ, RP_CAMPAIGN); 112 113 this->loadModel("models/guns/laser_cannon.obj"); 116 114 117 115 this->setStateDuration(WS_SHOOTING, .1); … … 135 133 136 134 137 void TestGun::loadParams(const TiXmlElement* root)135 void LaserCannon::loadParams(const TiXmlElement* root) 138 136 { 139 137 Weapon::loadParams(root); … … 149 147 been armed out. 150 148 */ 151 void TestGun::activate()149 void LaserCannon::activate() 152 150 { 153 151 } … … 161 159 been armed out. 162 160 */ 163 void TestGun::deactivate()161 void LaserCannon::deactivate() 164 162 { 165 163 } … … 172 170 @todo: the ObjectManager deliveres Projectiles not TestBullets! this should be diffrent 173 171 */ 174 void TestGun::fire()172 void LaserCannon::fire() 175 173 { 176 174 Projectile* pj = this->getProjectile(); … … 192 190 * this will draw the weapon 193 191 */ 194 void TestGun::draw () const192 void LaserCannon::draw () const 195 193 { 196 194 /* draw gun body */
Note: See TracChangeset
for help on using the changeset viewer.