Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 11:29:10 AM (18 years ago)
Author:
bensch
Message:

merged the mountain-lake back here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/effects/lightning_effect.cc

    r9006 r9112  
    2929#include "light.h"
    3030#include "cloud_effect.h"
     31#include "script_class.h"
    3132
    3233SHELL_COMMAND(activate, LightningEffect, activateLightning);
     
    3435
    3536using namespace std;
     37
     38CREATE_SCRIPTABLE_CLASS(LightningEffect, CL_LIGHTNING_EFFECT,
     39                        addMethod("activate", ExecutorLua0<LightningEffect>(&LightningEffect::activate))
     40                            ->addMethod("deactivate", ExecutorLua0<LightningEffect>(&LightningEffect::deactivate))
     41                       );
    3642
    3743CREATE_FACTORY(LightningEffect, CL_LIGHTNING_EFFECT);
     
    199205        this->flashLight->setSpecularColor(1,1,1);
    200206
    201         CloudEffect::flashSky(0.02);
    202207
    203208        // Play thunder sound
     
    223228        this->flashLight->setDiffuseColor(0,0,0);
    224229        this->flashLight->setSpecularColor(0,0,0);
    225         CloudEffect::changeSkyColor(Vector(0,0,1), 0.02);
    226230
    227231        this->newCoordinates();
Note: See TracChangeset for help on using the changeset viewer.