Changeset 9746 in orxonox.OLD for branches/new_class_id/src/lib/graphics
- Timestamp:
- Sep 16, 2006, 3:34:04 PM (18 years ago)
- 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 50 50 51 51 CREATE_SCRIPTABLE_CLASS(CloudEffect, CloudEffect::classID(), 52 addMethod("skyColor", Executor Lua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor))53 ->addMethod("cloudColor", Executor Lua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor))54 ->addMethod("activate", Executor Lua0<CloudEffect>(&CloudEffect::activate))55 ->addMethod("deactivate", Executor Lua0<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)) 56 56 ); 57 57 -
branches/new_class_id/src/lib/graphics/effects/fog_effect.cc
r9716 r9746 21 21 #include "script_class.h" 22 22 #include "cloud_effect.h" 23 #include "debug.h" 23 24 24 25 ObjectListDefinition(FogEffect); … … 32 33 33 34 CREATE_SCRIPTABLE_CLASS(FogEffect, FogEffect::classID(), 34 addMethod("fadeIn", Executor Lua0<FogEffect>(&FogEffect::fadeInFog))35 ->addMethod("fadeOut", Executor Lua0<FogEffect>(&FogEffect::fadeOutFog))36 ->addMethod("activate", Executor Lua0<FogEffect>(&FogEffect::activate))37 ->addMethod("deactivate", Executor Lua0<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)) 38 39 ); 39 40 -
branches/new_class_id/src/lib/graphics/effects/lightning_effect.cc
r9716 r9746 27 27 #include "cloud_effect.h" 28 28 #include "script_class.h" 29 #include "debug.h" 29 30 #include "class_id_DEPRECATED.h" 30 31 … … 35 36 36 37 CREATE_SCRIPTABLE_CLASS(LightningEffect, LightningEffect::classID(), 37 addMethod("activate", Executor Lua0<LightningEffect>(&LightningEffect::activate))38 ->addMethod("deactivate", Executor Lua0<LightningEffect>(&LightningEffect::deactivate))38 addMethod("activate", Executor0<LightningEffect, lua_State*>(&LightningEffect::activate)) 39 ->addMethod("deactivate", Executor0<LightningEffect, lua_State*>(&LightningEffect::deactivate)) 39 40 ); 40 41 -
branches/new_class_id/src/lib/graphics/effects/rain_effect.cc
r9716 r9746 30 30 #include "cloud_effect.h" 31 31 #include "script_class.h" 32 #include "debug.h" 32 33 33 34 #include "class_id_DEPRECATED.h" … … 44 45 45 46 CREATE_SCRIPTABLE_CLASS(RainEffect, RainEffect::classID(), 46 addMethod("startRaining", Executor Lua0<RainEffect>(&RainEffect::startRaining))47 ->addMethod("stopRaining", Executor Lua0<RainEffect>(&RainEffect::stopRaining))48 ->addMethod("activate", Executor Lua0<RainEffect>(&RainEffect::activate))49 ->addMethod("deactivate", Executor Lua0<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)) 50 51 ); 51 52 -
branches/new_class_id/src/lib/graphics/effects/snow_effect.cc
r9716 r9746 38 38 39 39 CREATE_SCRIPTABLE_CLASS(SnowEffect, SnowEffect::classID(), 40 addMethod("activate", Executor Lua0<SnowEffect>(&SnowEffect::activate))41 ->addMethod("deactivate", Executor Lua0<SnowEffect>(&SnowEffect::deactivate))40 addMethod("activate", Executor0<SnowEffect, lua_State*>(&SnowEffect::activate)) 41 ->addMethod("deactivate", Executor0<SnowEffect, lua_State*>(&SnowEffect::deactivate)) 42 42 ); 43 43
Note: See TracChangeset
for help on using the changeset viewer.