Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10669


Ignore:
Timestamp:
Oct 19, 2015, 4:00:00 PM (9 years ago)
Author:
vaydin
Message:

created new explosion class

Location:
code/branches/explosionChunksHS15
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/explosionChunksHS15/data/levels/emptyLevel.oxw

    r10629 r10669  
    1313
    1414<?lua
    15   include("templates/spaceshipAssff2.oxt")
    16   include("templates/spaceshipPirate.oxt")
     15  include("templates/spaceshipAssff.oxt")
    1716  include("templates/spaceshipEscort.oxt")
    18   include("templates/spaceshipRing.oxt")
    19   include("templates/spaceshipSwallow.oxt")
    2017?>
    2118
     
    3330    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    3431    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     32
     33    <SpaceShip
     34        team                = "1"
     35        position            = "1000,0,0"
     36   explosionchunks        = 60
     37        >
     38        <templates>
     39                      <Template link=spaceshipassff />
     40                    </templates>
     41    </SpaceShip>
     42    <SpaceShip
     43        team                = "1"
     44        position            = "1000,200,0"
     45        >
     46        <templates>
     47                      <Template link=spaceshipassff />
     48                    </templates>
     49    </SpaceShip>
     50    <SpaceShip
     51        team                = "1"
     52        position            = "1000,400,0"
     53        >
     54        <templates>
     55                      <Template link=spaceshipassff />
     56                    </templates>
     57    </SpaceShip>
    3558   
    3659  </Scene>
  • code/branches/explosionChunksHS15/data/levels/templates/spaceshipAssff.oxt

    r9939 r10669  
    55   spawnparticlesource    = "Orxonox/fairytwirl"
    66   spawnparticleduration  = 3
    7    explosionchunks        = 6
    87
    98   health            = 100
  • code/branches/explosionChunksHS15/data/levels/templates/spaceshipEscort.oxt

    r9664 r10669  
    55   spawnparticlesource    = "Orxonox/fairytwirl"
    66   spawnparticleduration  = 3
    7    explosionchunks        = 4
     7   explosionchunks        = 40
    88
    99   health            = 80
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/BigExplosion.cc

    r9952 r10669  
    8080    void BigExplosion::init()
    8181    {
     82
     83        orxout() << "BigExplosion" << endl;
     84
    8285        this->debrisEntity1_ = new MovableEntity(this->getContext());
    8386        this->debrisEntity2_ = new MovableEntity(this->getContext());
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/CMakeLists.txt

    r8706 r10669  
    1212  SpawnPoint.cc
    1313  TeamSpawnPoint.cc
     14  VaydinExplosion.cc
    1415)
    1516
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/pawns/Pawn.cc

    r10624 r10669  
    4242#include "worldentities/ExplosionChunk.h"
    4343#include "worldentities/BigExplosion.h"
     44//#include "worldentities/VaydinExplosion.h"
    4445#include "weaponsystem/WeaponSystem.h"
    4546#include "weaponsystem/WeaponSlot.h"
     
    142143        XMLPortObject(Pawn, WeaponSet, "weaponsets", addWeaponSet, getWeaponSet, xmlelement, mode);
    143144        XMLPortObject(Pawn, WeaponPack, "weapons", addWeaponPackXML, getWeaponPack, xmlelement, mode);
     145
     146        //XMLPortObject(Pawn, VaydinExplosion, "vaydinexplosion", addVaydinExplosion, getVaydinExplosion, xmlelement, mode);
    144147
    145148        XMLPortParam(Pawn, "reloadrate", setReloadRate, getReloadRate, xmlelement, mode).defaultValues(0);
     
    165168    void Pawn::tick(float dt)
    166169    {
     170        //BigExplosion* chunk = new BigExplosion(this->getContext());
    167171        SUPER(Pawn, tick, dt);
    168172
     
    375379    void Pawn::goWithStyle()
    376380    {
     381        orxout() << "gowithstyle" << endl;
     382
     383
    377384        this->bAlive_ = false;
    378385        this->setDestroyWhenPlayerLeft(false);
     
    387394    void Pawn::deatheffect()
    388395    {
     396        orxout() << "deatheffect" << endl;
    389397        // play death effect
    390398        /*{
Note: See TracChangeset for help on using the changeset viewer.