- Timestamp:
- May 17, 2019, 1:32:44 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc
r12394 r12396 1 /*2 * ORXONOX - the hottest 3D action shooter ever to exist3 * > www.orxonox.net <4 *5 *6 * License notice:7 *8 * This program is free software; you can redistribute it and/or9 * modify it under the terms of the GNU General Public License10 * as published by the Free Software Foundation; either version 211 * of the License, or (at your option) any later version.12 *13 * This program is distributed in the hope that it will be useful,14 * but WITHOUT ANY WARRANTY; without even the implied warranty of15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 * GNU General Public License for more details.17 *18 * You should have received a copy of the GNU General Public License19 * along with this program; if not, write to the Free Software20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.21 *22 * Author:23 * Fabian 'x3n' Landau24 * Co-authors:25 * ...26 *27 */28 29 /**30 @file ParticleProjectile.h31 @brief Implementation of the ParticleProjectile class.32 */33 34 1 #include "BallProjectile.h" 35 2 #include "gametypes/Gametype.h" … … 115 82 distance_Z = -distance_Z; 116 83 117 //orxout() << distance_X << endl;118 //orxout() << distance_Z << endl;119 120 84 if (distance_X < distance_Z) { 121 85 velocity.z = -velocity.z; 122 //orxout() << "z" << endl;123 86 } 124 87 if (distance_Z < distance_X) { 125 88 velocity.x = -velocity.x; 126 //orxout() << "x" << endl;127 89 } 128 90 else { 129 91 velocity.x = -velocity.x; 130 92 velocity.z = -velocity.z; 131 //orxout() << "both" << endl;132 93 } 133 94 this->setVelocity(velocity); 134 //}135 95 } 136 96 … … 142 102 if (otherObject->isA(Class(OrxoBloxStones))) { 143 103 Bounce(otherObject, contactPoint, cs); 144 orxout() << "BOUNCED!" << endl;145 104 146 105 } … … 187 146 position.z = this-> fieldHeight_; 188 147 189 //orxoblox_->LevelUp();190 148 orxoblox_->count(); 191 149 suicidal = true; … … 258 216 } 259 217 218 219 //This is an override to prevent getting killed by the program 260 220 void BallProjectile::destroyObject(void) 261 221 { -
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.h
r12384 r12396 1 /*2 * ORXONOX - the hottest 3D action shooter ever to exist3 * > www.orxonox.net <4 *5 *6 * License notice:7 *8 * This program is free software; you can redistribute it and/or9 * modify it under the terms of the GNU General Public License10 * as published by the Free Software Foundation; either version 211 * of the License, or (at your option) any later version.12 *13 * This program is distributed in the hope that it will be useful,14 * but WITHOUT ANY WARRANTY; without even the implied warranty of15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 * GNU General Public License for more details.17 *18 * You should have received a copy of the GNU General Public License19 * along with this program; if not, write to the Free Software20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.21 *22 * Author:23 * Fabian 'x3n' Landau24 * Co-authors:25 * ...26 *27 */28 29 /**30 @file ParticleProjectile.h31 @brief Definition of the ParticleProjectile class.32 */33 34 1 #ifndef _BallProjectile_H__ 35 2 #define _BallProjectile_H__ … … 45 12 { 46 13 47 /**48 @brief49 A projectile that is represented by particles.50 @author51 Fabian 'x3n' Landau52 @ingroup WeaponsProjectiles53 */54 14 class _WeaponsExport BallProjectile : public BillboardProjectile 55 15 {
Note: See TracChangeset
for help on using the changeset viewer.