- Timestamp:
- Nov 6, 2017, 3:32:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxAsteroid.h
r11530 r11537 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 * Florian Zinggeler24 * Co-authors:25 * ...26 *27 */28 29 /**30 @file FlappyOrxAsteroid.h31 @brief Declaration of the FlappyOrxAsteroid class.32 */33 34 #ifndef _FlappyOrxAsteroid_H__35 #define _FlappyOrxAsteroid_H__36 37 #include "flappyorx/FlappyOrxPrereqs.h"38 39 #include "worldentities/pawns/Pawn.h"40 41 namespace orxonox42 {43 class _FlappyOrxExport FlappyOrxAsteroid : public Pawn44 {45 public:46 FlappyOrxAsteroid(Context* context);47 48 virtual void tick(float dt) override;49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override;51 virtual void setFlappyOrxPlayer(FlappyOrxShip* player){this->player = player;}52 53 int level;54 protected:55 FlappyOrx* getGame();56 WeakPtr<FlappyOrx> game;57 WeakPtr<FlappyOrxShip> player;58 Camera* camera;59 bool isFireing;60 float speed, damping;61 float lastTimeFront, lastTimeLeft;62 float lifetime;63 struct Velocity64 {65 float x;66 float y;67 } velocity, desiredVelocity;68 69 };70 }71 72 #endif /* _FlappyOrxAsteroid_H__ */
Note: See TracChangeset
for help on using the changeset viewer.