Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/lang/base_object.cc @ 4318

Last change on this file since 4318 was 4318, checked in by patrick, 19 years ago

orxonox/trunk: now changed the orxonox baseobject to object id representation. this is much faster, but needs some care, when defining new classes

File size: 984 bytes
Line 
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"
20#include "stdincl.h"
21
22
23using namespace std;
24
25
26/**
27   \brief standard constructor
28*/
29BaseObject::BaseObject () 
30{
31  this->className = NULL;
32  this->finalized = false;
33}
34
35
36/**
37   \brief standard deconstructor
38*/
39BaseObject::~BaseObject () 
40{
41  //  delete []this->className;
42}
43
44
45void BaseObject::setClassID (int id)
46{
47  this->id = id;
48}
49
50
51
52bool BaseObject::isA (char* className)
53{
54  if( this->className == className)
55    return false;
56  return true;
57}
58
59/*
60bool BaseObject::isFinalized()
61{
62 
63}
64*/
65
66void BaseObject::finalize()
67{
68  this->finalized = true;
69}
Note: See TracBrowser for help on using the repository browser.