| 1 | /*************************************************************************** |
| 2 | treestructure.h - description |
| 3 | ------------------- |
| 4 | begin : july 23th, 2006 |
| 5 | copyright : (C) 2006-2007 by Duong Khang NGUYEN |
| 6 | email : neoneurone @ gmail com |
| 7 | |
| 8 | $Id: treestructure.h 375 2008-10-28 14:47:15Z neoneurone $ |
| 9 | ***************************************************************************/ |
| 10 | |
| 11 | /*************************************************************************** |
| 12 | * * |
| 13 | * This program is free software; you can redistribute it and/or modify * |
| 14 | * it under the terms of the GNU General Public License as published by * |
| 15 | * the Free Software Foundation; either version 2 of the License, or * |
| 16 | * any later version. * |
| 17 | * * |
| 18 | ***************************************************************************/ |
| 19 | |
| 20 | #ifndef _OPENCITY_TREESTRUCTURE_H_ |
| 21 | #define _OPENCITY_TREESTRUCTURE_H_ 1 |
| 22 | |
| 23 | #include "structure.h" |
| 24 | |
| 25 | |
| 26 | //======================================================================== |
| 27 | /** This is a specialisation of structure for trees. |
| 28 | */ |
| 29 | class TreeStructure : public Structure { |
| 30 | public: |
| 31 | TreeStructure(); |
| 32 | |
| 33 | TreeStructure( const OPENCITY_STRUCTURE_CODE & enumStructCode); |
| 34 | |
| 35 | /* not used atm |
| 36 | TreeStructure( |
| 37 | const OPENCITY_STRUCTURE_CODE & enumStructCode, |
| 38 | Structure * pMain ); |
| 39 | */ |
| 40 | |
| 41 | |
| 42 | virtual ~TreeStructure(); // virtual since 'Structure' is an abstract class |
| 43 | |
| 44 | |
| 45 | //======================================================================== |
| 46 | /** Returns the GRAPHIC_CODE of the next level |
| 47 | */ |
| 48 | /* not used atm |
| 49 | const OPENCITY_GRAPHIC_CODE |
| 50 | GetNextLevelGraphicCode() const; |
| 51 | */ |
| 52 | |
| 53 | |
| 54 | //======================================================================== |
| 55 | /** Returns the GRAPHIC_CODE of the previous level |
| 56 | */ |
| 57 | /* not used atm |
| 58 | const OPENCITY_GRAPHIC_CODE |
| 59 | GetPreviousLevelGraphicCode() const; |
| 60 | */ |
| 61 | |
| 62 | /* not used atm |
| 63 | const bool |
| 64 | LevelUp(); |
| 65 | |
| 66 | const bool |
| 67 | LevelDown(); |
| 68 | */ |
| 69 | }; |
| 70 | |
| 71 | #endif |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 |