Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9109 in orxonox.OLD


Ignore:
Timestamp:
Jul 4, 2006, 11:15:53 AM (18 years ago)
Author:
hdavid
Message:

branches/mountain_lake

Location:
branches/mountain_lake/src/lib/graphics/effects
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/lib/graphics/effects/cloud_effect.cc

    r9028 r9109  
    5151                        addMethod("skyColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor))
    5252                        ->addMethod("cloudColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor))
     53                        ->addMethod("activate", ExecutorLua0<CloudEffect>(&CloudEffect::activate))
     54                        ->addMethod("deactivate", ExecutorLua0<CloudEffect>(&CloudEffect::deactivate))
    5355                       );
    5456
  • branches/mountain_lake/src/lib/graphics/effects/fog_effect.cc

    r9006 r9109  
    1919
    2020#include "shell_command.h"
     21#include "script_class.h"
    2122
    2223// Define shell commands
     
    2728
    2829using namespace std;
     30
     31CREATE_SCRIPTABLE_CLASS(FogEffect, CL_FOG_EFFECT,
     32                        addMethod("fadeIn", ExecutorLua0<FogEffect>(&FogEffect::fadeInFog))
     33                            ->addMethod("fadeOut", ExecutorLua0<FogEffect>(&FogEffect::fadeOutFog))
     34                            ->addMethod("activate", ExecutorLua0<FogEffect>(&FogEffect::activate))
     35                            ->addMethod("deactivate", ExecutorLua0<FogEffect>(&FogEffect::deactivate))
     36                       );
    2937
    3038CREATE_FACTORY(FogEffect, CL_FOG_EFFECT);
  • branches/mountain_lake/src/lib/graphics/effects/lightning_effect.cc

    r9028 r9109  
    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);
  • branches/mountain_lake/src/lib/graphics/effects/rain_effect.cc

    r9006 r9109  
    2929#include "light.h"
    3030#include "cloud_effect.h"
     31#include "script_class.h"
    3132
    3233#include "parser/tinyxml/tinyxml.h"
     
    3940
    4041using namespace std;
     42
     43CREATE_SCRIPTABLE_CLASS(RainEffect, CL_RAIN_EFFECT,
     44                        addMethod("startRaining", ExecutorLua0<RainEffect>(&RainEffect::startRaining))
     45                            ->addMethod("stopRaining", ExecutorLua0<RainEffect>(&RainEffect::stopRaining))
     46                            ->addMethod("activate", ExecutorLua0<RainEffect>(&RainEffect::activate))
     47                            ->addMethod("deactivate", ExecutorLua0<RainEffect>(&RainEffect::deactivate))
     48                       );
    4149
    4250CREATE_FACTORY(RainEffect, CL_RAIN_EFFECT);
  • branches/mountain_lake/src/lib/graphics/effects/snow_effect.cc

    r9006 r9109  
    2727#include "plane_emitter.h"
    2828#include "shell_command.h"
     29#include "script_class.h"
    2930
    3031#include "parser/tinyxml/tinyxml.h"
     
    3435
    3536using namespace std;
     37
     38CREATE_SCRIPTABLE_CLASS(SnowEffect, CL_SNOW_EFFECT,
     39                            addMethod("activate", ExecutorLua0<SnowEffect>(&SnowEffect::activate))
     40                            ->addMethod("deactivate", ExecutorLua0<SnowEffect>(&SnowEffect::deactivate))
     41                       );
    3642
    3743CREATE_FACTORY(SnowEffect, CL_SNOW_EFFECT);
Note: See TracChangeset for help on using the changeset viewer.