Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/proto_class.cc @ 3543

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

orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.

File size: 1.2 KB
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: ...
15   co-programmer: ...
16*/
17
18
19#include "proto_class.h"
20
21#include "stdincl.h" // maybe
22
23using namespace std;
24
25
26/**
27   \brief standard constructor
28   \todo this constructor is not jet implemented - do it
29*/
30ProtoClass::ProtoClass () 
31{
32   this->setClassName ("ProtoClass");
33}
34
35
36/**
37   \brief standard deconstructor
38
39*/
40ProtoClass::~ProtoClass () 
41{
42  this->destroy();
43}
44
45/**
46   \brief deletes all data and also deletes all data from the class this is derived from
47*/
48ProtoClass::~destroy(void)
49{
50  // delete what has to be deleted here
51  static_cast<BaseObject*>(this)->destroy();
52}
53
54/**
55   \brief nonsense - delete this method
56   \param realy nothing to give
57   \returns true or false - probably nothing?
58
59   this is just to show the doxygen abilities (this for example is an extension for a long comment)
60*/
61bool ProtoClass::doNonSense (int nothing) {}
Note: See TracBrowser for help on using the repository browser.