source:
orxonox.OLD/trunk/src/lib/script_engine/script_class.cc
@
8538
Last change on this file since 8538 was 8408, checked in by bensch, 18 years ago | |
---|---|
File size: 954 bytes |
Rev | Line | |
---|---|---|
[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 | |
[8202] | 18 | #include "script_class.h" |
[8408] | 19 | #include <cassert> |
[1853] | 20 | |
[3245] | 21 | /** |
[8408] | 22 | * @brief standard constructor |
[4838] | 23 | * @todo this constructor is not jet implemented - do it |
[3245] | 24 | */ |
[8408] | 25 | ScriptClass::ScriptClass(const std::string& name, ClassID classID, ScriptMethod* scriptMethods) |
26 | : BaseObject(name) | |
[3365] | 27 | { |
[8408] | 28 | assert(scriptMethods != NULL); |
29 | this->setClassID(CL_SCRIPT_CLASS, "ScriptClass"); | |
30 | ||
31 | this->_classID = classID; | |
32 | ||
33 | this->_scriptMethods = scriptMethods; | |
[3365] | 34 | } |
[1853] | 35 | |
36 | ||
[3245] | 37 | /** |
[4838] | 38 | * standard deconstructor |
[3245] | 39 | */ |
[8202] | 40 | ScriptClass::~ScriptClass () |
[3543] | 41 | { |
[8408] | 42 | delete this->_scriptMethods; |
[3543] | 43 | } |
Note: See TracBrowser
for help on using the repository browser.