Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/script_engine/src/lib/script_engine/script_method.h @ 8401

Last change on this file since 8401 was 8401, checked in by bensch, 18 years ago

see this

File size: 741 bytes
Line 
1/*!
2 * @file script_class.h
3 * @brief Definition of ...
4*/
5
6#ifndef _SCRIPT_METHOD_H
7#define _SCRIPT_METHOD_H
8
9#include <vector>
10
11#include "executor/executor_lua.h"
12
13
14class ScriptMethod
15{
16public:
17  ScriptMethod();
18  ~ScriptMethod();
19
20  ScriptMethod* addMethod(const std::string& methodName, const Executor& executor);
21
22  const std::string& name(unsigned int methodNumber) const { return methods[methodNumber].name; };
23  const Executor* executor(unsigned int methodNumber) const { return methods[methodNumber].executor; };
24
25
26private:
27  struct Method
28  {
29    Method(const std::string& name, const Executor& executor);
30    std::string    name;
31    Executor*      executor;
32  };
33
34  std::vector<Method> methods;
35};
36
37#endif /* _SCRIPT_METHOD_H */
Note: See TracBrowser for help on using the repository browser.