Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/coord/null_parent.cc @ 6072

Last change on this file since 6072 was 6070, checked in by bensch, 20 years ago

orxonox/trunk: suppression file and minor fixes

File size: 1.1 KB
RevLine 
[3276]1
2
[4871]3/*
[3276]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
[5300]18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PARENT_NODE
[3276]19
20#include "null_parent.h"
21
22using namespace std;
23
[5082]24NullParent* NullParent::singletonRef = NULL;
[3276]25
[4448]26/**
[4836]27 *  creates the one and only NullParent
28 * @param absCoordinate the cordinate of the Parent (normally Vector(0,0,0))
[4448]29*/
[4441]30NullParent::NullParent (const Vector& absCoordinate) : PNode (absCoordinate, NULL)
[3276]31{
[4448]32  this->setClassID(CL_NULL_PARENT, "NullParent");
[3529]33  this->setName("NullParent");
[4448]34
[6070]35  while (!this->getNodesChildren().empty())
36    delete this->getNodesChildren().front();
37
[4448]38  this->setParentMode(PNODE_ALL);
[4444]39  NullParent::singletonRef = this;
[3276]40}
41
42
43/**
[4836]44 *  standard deconstructor
[3276]45*/
[4871]46NullParent::~NullParent ()
[3311]47{
[3529]48  //delete singletonRef;
[4448]49  NullParent::singletonRef = NULL;
[3311]50}
Note: See TracBrowser for help on using the repository browser.