Changeset 9131 in orxonox.OLD for branches/presentation/src/world_entities
- Timestamp:
- Jul 4, 2006, 2:43:20 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/WorldEntities.am
r9061 r9131 22 22 \ 23 23 world_entities/weapons/test_gun.cc \ 24 world_entities/weapons/laser_cannon.cc \ 24 25 world_entities/weapons/turret.cc \ 25 26 world_entities/weapons/aiming_turret.cc \ … … 87 88 \ 88 89 weapons/test_gun.h \ 90 weapons/laser_cannon.cc \ 89 91 weapons/cannon.h \ 90 92 weapons/hyperblaster.h \ -
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9124 r9131 301 301 State::getCameraNode()->setRelCoorSoft(-3, 50,0); 302 302 State::getCameraTargetNode()->setParentSoft(this->travelNode); 303 State::getCameraTargetNode()->setRelCoorSoft( 0,0,0);303 State::getCameraTargetNode()->setRelCoorSoft(5,0,1); 304 304 305 305 -
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 */ -
branches/presentation/src/world_entities/weapons/laser_cannon.h
r9127 r9131 21 21 22 22 23 #ifndef _ TEST_GUN_H24 #define _ TEST_GUN_H23 #ifndef _LASER_CANNON_H 24 #define _LASER_CANNON_H 25 25 26 26 #include "weapon.h" … … 35 35 36 36 37 class TestGun : public Weapon37 class LaserCannon : public Weapon 38 38 { 39 39 public: 40 TestGun (int leftRight);41 TestGun (const TiXmlElement* root);42 virtual ~ TestGun ();40 LaserCannon (int leftRight); 41 LaserCannon (const TiXmlElement* root); 42 virtual ~LaserCannon (); 43 43 44 44 void init(); … … 57 57 int leftRight; // this will become an enum 58 58 }; 59 #endif /* _ TEST_GUN_H */59 #endif /* _LASER_CANNON_H */
Note: See TracChangeset
for help on using the changeset viewer.