Last change
on this file since 8898 was
8711,
checked in by bensch, 18 years ago
|
merged the script_engine back here
|
File size:
966 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: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
17 | |
---|
18 | #include "script_class.h" |
---|
19 | #include <cassert> |
---|
20 | |
---|
21 | /** |
---|
22 | * @brief standard constructor |
---|
23 | * @todo this constructor is not jet implemented - do it |
---|
24 | */ |
---|
25 | ScriptClass::ScriptClass(const std::string& name, ClassID classID, ScriptMethod* scriptMethods) |
---|
26 | : BaseObject(name) |
---|
27 | { |
---|
28 | assert(scriptMethods != NULL); |
---|
29 | this->setClassID(CL_SCRIPT_CLASS, "ScriptClass"); |
---|
30 | |
---|
31 | this->_classID = classID; |
---|
32 | |
---|
33 | this->_scriptMethods = scriptMethods; |
---|
34 | } |
---|
35 | |
---|
36 | |
---|
37 | /** |
---|
38 | * standard deconstructor |
---|
39 | */ |
---|
40 | ScriptClass::~ScriptClass () |
---|
41 | { |
---|
42 | delete this->_scriptMethods; |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.