Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9746 in orxonox.OLD for branches/new_class_id/src/lib/graphics


Ignore:
Timestamp:
Sep 16, 2006, 3:34:04 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: does not run anymore with scripts, but i think, it is on track

lua_State is now handled over the Global Executor

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

Legend:

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

    r9716 r9746  
    5050
    5151CREATE_SCRIPTABLE_CLASS(CloudEffect, CloudEffect::classID(),
    52                         addMethod("skyColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor))
    53                         ->addMethod("cloudColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor))
    54                         ->addMethod("activate", ExecutorLua0<CloudEffect>(&CloudEffect::activate))
    55                         ->addMethod("deactivate", ExecutorLua0<CloudEffect>(&CloudEffect::deactivate))
     52                        addMethod("skyColor", Executor4<CloudEffect, lua_State*,float,float,float,float>(&CloudEffect::shellSkyColor))
     53                        ->addMethod("cloudColor", Executor4<CloudEffect, lua_State*,float,float,float,float>(&CloudEffect::shellCloudColor))
     54                        ->addMethod("activate", Executor0<CloudEffect, lua_State*>(&CloudEffect::activate))
     55                        ->addMethod("deactivate", Executor0<CloudEffect, lua_State*>(&CloudEffect::deactivate))
    5656                       );
    5757
  • branches/new_class_id/src/lib/graphics/effects/fog_effect.cc

    r9716 r9746  
    2121#include "script_class.h"
    2222#include "cloud_effect.h"
     23#include "debug.h"
    2324
    2425ObjectListDefinition(FogEffect);
     
    3233
    3334CREATE_SCRIPTABLE_CLASS(FogEffect, FogEffect::classID(),
    34                         addMethod("fadeIn", ExecutorLua0<FogEffect>(&FogEffect::fadeInFog))
    35                             ->addMethod("fadeOut", ExecutorLua0<FogEffect>(&FogEffect::fadeOutFog))
    36                             ->addMethod("activate", ExecutorLua0<FogEffect>(&FogEffect::activate))
    37                             ->addMethod("deactivate", ExecutorLua0<FogEffect>(&FogEffect::deactivate))
     35                        addMethod("fadeIn", Executor0<FogEffect, lua_State*>(&FogEffect::fadeInFog))
     36                            ->addMethod("fadeOut", Executor0<FogEffect, lua_State*>(&FogEffect::fadeOutFog))
     37                            ->addMethod("activate", Executor0<FogEffect, lua_State*>(&FogEffect::activate))
     38                            ->addMethod("deactivate", Executor0<FogEffect, lua_State*>(&FogEffect::deactivate))
    3839                       );
    3940
  • branches/new_class_id/src/lib/graphics/effects/lightning_effect.cc

    r9716 r9746  
    2727#include "cloud_effect.h"
    2828#include "script_class.h"
     29#include "debug.h"
    2930#include "class_id_DEPRECATED.h"
    3031
     
    3536
    3637CREATE_SCRIPTABLE_CLASS(LightningEffect, LightningEffect::classID(),
    37                         addMethod("activate", ExecutorLua0<LightningEffect>(&LightningEffect::activate))
    38                             ->addMethod("deactivate", ExecutorLua0<LightningEffect>(&LightningEffect::deactivate))
     38                        addMethod("activate", Executor0<LightningEffect, lua_State*>(&LightningEffect::activate))
     39                            ->addMethod("deactivate", Executor0<LightningEffect, lua_State*>(&LightningEffect::deactivate))
    3940                       );
    4041
  • branches/new_class_id/src/lib/graphics/effects/rain_effect.cc

    r9716 r9746  
    3030#include "cloud_effect.h"
    3131#include "script_class.h"
     32#include "debug.h"
    3233
    3334#include "class_id_DEPRECATED.h"
     
    4445
    4546CREATE_SCRIPTABLE_CLASS(RainEffect, RainEffect::classID(),
    46                         addMethod("startRaining", ExecutorLua0<RainEffect>(&RainEffect::startRaining))
    47                             ->addMethod("stopRaining", ExecutorLua0<RainEffect>(&RainEffect::stopRaining))
    48                             ->addMethod("activate", ExecutorLua0<RainEffect>(&RainEffect::activate))
    49                             ->addMethod("deactivate", ExecutorLua0<RainEffect>(&RainEffect::deactivate))
     47                        addMethod("startRaining", Executor0<RainEffect, lua_State*>(&RainEffect::startRaining))
     48                            ->addMethod("stopRaining", Executor0<RainEffect, lua_State*>(&RainEffect::stopRaining))
     49                            ->addMethod("activate", Executor0<RainEffect, lua_State*>(&RainEffect::activate))
     50                            ->addMethod("deactivate", Executor0<RainEffect, lua_State*>(&RainEffect::deactivate))
    5051                       );
    5152
  • branches/new_class_id/src/lib/graphics/effects/snow_effect.cc

    r9716 r9746  
    3838
    3939CREATE_SCRIPTABLE_CLASS(SnowEffect, SnowEffect::classID(),
    40                             addMethod("activate", ExecutorLua0<SnowEffect>(&SnowEffect::activate))
    41                             ->addMethod("deactivate", ExecutorLua0<SnowEffect>(&SnowEffect::deactivate))
     40                            addMethod("activate", Executor0<SnowEffect, lua_State*>(&SnowEffect::activate))
     41                            ->addMethod("deactivate", Executor0<SnowEffect, lua_State*>(&SnowEffect::deactivate))
    4242                       );
    4343
Note: See TracChangeset for help on using the changeset viewer.