Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2015, 1:23:47 PM (9 years ago)
Author:
fvultier
Message:

New Weapon for the towerDefense minigame: The SplitGun, a weapon that shoots one projectile that splits up into multiple projectiles after a specified time, these new projectiles may split up again… The weapon may be used by any Oxonox Spaceship.

Location:
code/branches/towerdefenseFabien/src/modules
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/towerdefense/TowerDefense.cc

    r10591 r10592  
    8181#include "chat/ChatManager.h"
    8282#include "core/CoreIncludes.h"
    83 /* Part of a temporary hack to allow the player to add towers */
    84 #include "core/command/ConsoleCommand.h"
    85 
    8683
    8784namespace orxonox
     
    103100        this->waveSize_ = 0;
    104101        offset_ = Vector3(0,0,10);
    105 
    106         //this->stats_ = new TowerDefensePlayerStats();
    107102    }
    108103
     
    178173
    179174        en1->setTeam(2);
    180 
    181         //orxonox::WeakPtr<WaypointController> controller = new WaypointController(this->center_->getContext());
    182         //controller->setControllableEntity(en1);
    183         //en1->setController(controller);
    184175
    185176        WaypointController* controller = (WaypointController*)(en1->getXMLController());
     
    340331            timeSinceLastSpawn_ = 0.0;
    341332
    342             timeUntilNextWave_ = waveNumber_+10;
     333            timeUntilNextWave_ = waveNumber_+20;
    343334            waveSize_ = waveNumber_+5;
    344335        }
  • code/branches/towerdefenseFabien/src/modules/weapons/WeaponsPrereqs.h

    r8855 r10592  
    7979    class BillboardProjectile;
    8080    class LightningGunProjectile;
     81    class SplitGunProjectile;
    8182    class ParticleProjectile;
    8283    class Projectile;
     
    9091    class LaserFire;
    9192    class LightningGun;
     93    class SplitGun;
    9294    class RocketFire;
    9395    class SimpleRocketFire;
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/BillboardProjectile.cc

    r9667 r10592  
    8888    /**
    8989    @brief
     90        Get the material of the BillboardProjectile.
     91    @return
     92        The material name.
     93    */
     94    const std::string& BillboardProjectile::getMaterial()
     95    {
     96        return this->billboard_.getMaterial();
     97    }
     98
     99    /**
     100    @brief
    90101        Is called when the visibility of the BillboardProjectile has changed.
    91102    */
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/BillboardProjectile.h

    r9667 r10592  
    6060            virtual void setColour(const ColourValue& colour);
    6161            virtual void setMaterial(const std::string& material);
     62            virtual const std::string& getMaterial();
    6263            virtual void changedVisibility();
    6364
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/CMakeLists.txt

    r8855 r10592  
    55  Projectile.cc
    66  LightningGunProjectile.cc
     7  SplitGunProjectile.cc
    78  Rocket.cc
    89  SimpleRocket.cc
     10  SplitGunProjectile.cc
    911)
  • code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/CMakeLists.txt

    r7163 r10592  
    55  HsW01.cc
    66  LightningGun.cc
     7  SplitGun.cc
    78  RocketFire.cc
    89  SimpleRocketFire.cc
Note: See TracChangeset for help on using the changeset viewer.