Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/scriptimprovements/src/lib/script_engine/lua_vector.cc @ 10607

Last change on this file since 10607 was 10564, checked in by snellen, 18 years ago

script_trigger: execution of script aborts now when something goes wrong

File size: 956 bytes
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Silvan Nellen
13   co-programmer: ...
14*/
15
16#include "lua_vector.h"
17#include "script_class.h"
18
19ObjectListDefinition(LuaVector);
20
21CREATE_SCRIPTABLE_CLASS(LuaVector,
22                        addMethod("getX", Executor0ret<LuaVector, lua_State*,float>(&LuaVector::getX))
23                        ->addMethod("getY", Executor0ret<LuaVector, lua_State*,float>(&LuaVector::getY))
24                        ->addMethod("getZ", Executor0ret<LuaVector, lua_State*,float>(&LuaVector::getZ))
25                      //  ->addMethod("dot", Executor1ret<LuaVector, lua_State*,float, LuaVector>(&LuaVector::dot))
26                       );
27
Note: See TracBrowser for help on using the repository browser.