source:
orxonox.OLD/orxonox/trunk/src/lib/lang/base_object.cc
@
4320
Last change on this file since 4320 was 4320, checked in by patrick, 19 years ago | |
---|---|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[3302] | 1 | |
2 | ||
3 | /* | |
4 | orxonox - the future of 3D-vertical-scrollers | |
5 | ||
6 | Copyright (C) 2004 orx | |
7 | ||
8 | This program is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
12 | ||
13 | ### File Specific: | |
14 | main-programmer: Patrick Boenzli | |
15 | co-programmer: ... | |
16 | */ | |
17 | ||
18 | ||
19 | #include "base_object.h" | |
[3607] | 20 | #include "stdincl.h" |
[3302] | 21 | |
22 | ||
23 | using namespace std; | |
24 | ||
25 | ||
26 | /** | |
27 | \brief standard constructor | |
28 | */ | |
[3531] | 29 | BaseObject::BaseObject () |
30 | { | |
31 | this->className = NULL; | |
[3646] | 32 | this->finalized = false; |
[3531] | 33 | } |
[3302] | 34 | |
35 | ||
36 | /** | |
37 | \brief standard deconstructor | |
38 | */ | |
[3531] | 39 | BaseObject::~BaseObject () |
40 | { | |
[4261] | 41 | // delete []this->className; |
[3531] | 42 | } |
[3302] | 43 | |
[4320] | 44 | void BaseObject::setClassID(int id, const char* className) |
45 | { | |
46 | this->id = id; | |
47 | this->className = className; | |
48 | } | |
[4318] | 49 | |
[4320] | 50 | |
[4318] | 51 | void BaseObject::setClassID (int id) |
[3302] | 52 | { |
[4318] | 53 | this->id = id; |
[3302] | 54 | } |
55 | ||
[4320] | 56 | void BaseObject::setClassName(const char* className) |
57 | { | |
58 | this->className = className; | |
59 | } | |
[4318] | 60 | |
61 | ||
[3302] | 62 | bool BaseObject::isA (char* className) |
63 | { | |
64 | if( this->className == className) | |
65 | return false; | |
66 | return true; | |
67 | } | |
[3646] | 68 | |
[3651] | 69 | /* |
[3646] | 70 | bool BaseObject::isFinalized() |
71 | { | |
[3651] | 72 | |
[3646] | 73 | } |
[3651] | 74 | */ |
[3646] | 75 | |
76 | void BaseObject::finalize() | |
77 | { | |
78 | this->finalized = true; | |
79 | } |
Note: See TracBrowser
for help on using the repository browser.