Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

see this

File size: 1.1 KB
RevLine 
[4744]1/*
[1853]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.
[1855]10
11   ### File Specific:
12   main-programmer: ...
13   co-programmer: ...
[1853]14*/
15
[3955]16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
[1853]17
[8390]18#include "script_method.h"
[1853]19
[3245]20/**
[8390]21 * @param standard constructor
[4838]22 * @todo this constructor is not jet implemented - do it
[3245]23*/
[8401]24ScriptMethod::ScriptMethod()
25{ }
[1853]26
[8393]27ScriptMethod* ScriptMethod::addMethod(const std::string& methodName, const Executor& executor)
[8390]28{
29  this->methods.push_back(ScriptMethod::Method(methodName, executor));
[1853]30
[8393]31  return this;
[8390]32}
33
34ScriptMethod::Method::Method(const std::string& name, const Executor& executor)
35{
36  this->name = name;
37  this->executor = executor.clone();
38}
39
[3245]40/**
[4838]41 * standard deconstructor
[3245]42*/
[8390]43ScriptMethod::~ScriptMethod()
[3543]44{
[8390]45  for (unsigned int i = 0; i < methods.size(); i ++)
46  {
47    delete methods[i].executor;
48  };
[3543]49}
Note: See TracBrowser for help on using the repository browser.