Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/script_engine/script_class.cc @ 9869

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.0 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:
[8711]12   main-programmer: Benjamin Grauer
[1855]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
[9869]21ObjectListDefinition(ScriptClass);
[3245]22/**
[8408]23 * @brief standard constructor
[4838]24 * @todo this constructor is not jet implemented - do it
[3245]25*/
[9869]26ScriptClass::ScriptClass(const std::string& name, const ClassID& classID, ScriptMethod* scriptMethods)
27    : BaseObject(name), _classID(classID)
[3365]28{
[8408]29  assert(scriptMethods != NULL);
[9869]30  this->registerObject(this, ScriptClass::_objectList);
[8408]31
32  this->_classID = classID;
33
34  this->_scriptMethods = scriptMethods;
[3365]35}
[1853]36
37
[3245]38/**
[4838]39 * standard deconstructor
[3245]40*/
[8202]41ScriptClass::~ScriptClass ()
[3543]42{
[8408]43  delete this->_scriptMethods;
[3543]44}
Note: See TracBrowser for help on using the repository browser.