Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2015, 5:43:36 PM (9 years ago)
Author:
meggiman
Message:

Added new models and fixed dammage bug. Bomb now fully working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBombField.h

    r10409 r10435  
    1717#include "GravityBomb.h"
    1818#include "graphics/ParticleSpawner.h"
    19 
     19#include "tools/ParticleInterface.h"
     20#include <stdlib.h>
     21#include <time.h>
     22#include "graphics/Backlight.h"
    2023
    2124namespace orxonox {
     
    2629        virtual void tick(float dt);
    2730        virtual void destroy();
     31
     32        void setShooter(Pawn* shooter)
     33        { this->shooter_ = shooter; }
     34
     35        Pawn* getShooter()
     36        { return this->shooter_; }
     37
    2838private:
    2939        static const float FORCE_FIELD_LIFETIME;
    3040        static const float FORCE_SPHERE_START_RADIUS;
    3141        static const float FORCE_SPHERE_START_STRENGTH;
     42        static const float FORCE_FIELD_EXPLOSION_DAMMAGE;
     43        static const float EXPLOSION_DURATION;
     44        static const float EXPLOSION_RADIUS;
     45        static const float PEAK_ANGULAR_VELOCITY;
     46        static const float PEAK_EXPLOSION_FORCE;
    3247
    3348        float forceSphereRadius_;
    3449        float forceStrength_;
    3550        float lifetime_;
     51        Vector3 rotationVector_;
    3652        bool fieldExploded_;
    3753        ParticleEmitter * particleSphere_;
    38 
     54        ParticleEmitter * explosionCross_;
     55        std::vector<Pawn*> victimsAlreadyDamaged_;
     56        MovableEntity * bombModel_;
     57        Pawn* shooter_;
    3958};
    4059
Note: See TracChangeset for help on using the changeset viewer.