Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2015, 10:07:09 PM (9 years ago)
Author:
landauf
Message:

using strongly typed enum class in WorldEntity

Location:
code/branches/cpp11_v2/src/modules/weapons/projectiles
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBomb.cc

    r10622 r11004  
    2828                this->timeToLife_= LIFETIME;
    2929                this->setCollisionResponse(false);
    30                 this->setCollisionType(WorldEntity::Dynamic);
     30                this->setCollisionType(WorldEntity::CollisionType::Dynamic);
    3131                this->enableCollisionCallback();
    3232
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/IceGunProjectile.cc

    r10629 r11004  
    8989            Vector3 offset = this->getWorldPosition() - otherObject->getWorldPosition();
    9090            freezer->setPosition(Vector3(0,0,0));
    91             freezer->translate(offset, WorldEntity::World);
     91            freezer->translate(offset, WorldEntity::TransformSpace::World);
    9292            // Start the freezing effect.
    9393            freezer->startFreezing();
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/LightningGunProjectile.cc

    r10622 r11004  
    4848        this->textureIndex_ = 1;
    4949        this->setMass(2);
    50         this->setCollisionType(Dynamic);
     50        this->setCollisionType(CollisionType::Dynamic);
    5151        this->maxTextureIndex_ = 8;
    5252        this->textureTimer_.setTimer(0.01f, true, createExecutor(createFunctor(&LightningGunProjectile::changeTexture, this)));
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/Projectile.cc

    r10765 r11004  
    5757            this->enableCollisionCallback();
    5858            this->setCollisionResponse(false);
    59             this->setCollisionType(Dynamic);
     59            this->setCollisionType(CollisionType::Dynamic);
    6060
    6161            // Create a sphere collision shape and attach it to the projectile.
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/Rocket.cc

    r11000 r11004  
    7070        if (GameMode::isMaster())
    7171        {
    72             this->setCollisionType(WorldEntity::Kinematic);
     72            this->setCollisionType(WorldEntity::CollisionType::Kinematic);
    7373            this->setVelocity(0,0,-100);
    7474
     
    9292            this->enableCollisionCallback();
    9393            this->setCollisionResponse(false);
    94             this->setCollisionType(Kinematic);
     94            this->setCollisionType(CollisionType::Kinematic);
    9595
    9696            // Add collision shape
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/RocketOld.cc

    r11000 r11004  
    7070        if (GameMode::isMaster())
    7171        {
    72             this->setCollisionType(WorldEntity::Kinematic);
     72            this->setCollisionType(WorldEntity::CollisionType::Kinematic);
    7373            this->setVelocity(0,0,-100);
    7474
     
    9292            this->enableCollisionCallback();
    9393            this->setCollisionResponse(false);
    94             this->setCollisionType(Kinematic);
     94            this->setCollisionType(CollisionType::Kinematic);
    9595
    9696            // Add collision shape
  • code/branches/cpp11_v2/src/modules/weapons/projectiles/SimpleRocket.cc

    r11000 r11004  
    7070        if (GameMode::isMaster())
    7171        {
    72             this->setCollisionType(WorldEntity::Kinematic);
     72            this->setCollisionType(WorldEntity::CollisionType::Kinematic);
    7373            this->fuel_ = true;
    7474
     
    8787            this->enableCollisionCallback();
    8888            this->setCollisionResponse(false);
    89             this->setCollisionType(Kinematic);
     89            this->setCollisionType(CollisionType::Kinematic);
    9090
    9191            // Add collision shape.
Note: See TracChangeset for help on using the changeset viewer.