| 1 | /*************************************************************************** |
| 2 | rcistructure.h - description |
| 3 | ------------------- |
| 4 | begin : june 17th, 2003 |
| 5 | copyright : (C) 2003-2007 by Duong Khang NGUYEN |
| 6 | email : neoneurone @ gmail com |
| 7 | |
| 8 | $Id: rcistructure.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_RCISTRUCTURE_H_ |
| 21 | #define _OPENCITY_RCISTRUCTURE_H_ 1 |
| 22 | |
| 23 | |
| 24 | #include "structure.h" |
| 25 | |
| 26 | |
| 27 | /** This is a specialisation of structure. It regroups Residential, |
| 28 | Commercial and Industrial |
| 29 | */ |
| 30 | class RCIStructure : public Structure { |
| 31 | public: |
| 32 | RCIStructure(); |
| 33 | |
| 34 | RCIStructure( const OPENCITY_STRUCTURE_CODE & enumStructCode); |
| 35 | RCIStructure( |
| 36 | const OPENCITY_STRUCTURE_CODE & enumStructCode, |
| 37 | Structure * pMain ); |
| 38 | |
| 39 | |
| 40 | virtual ~RCIStructure(); // virtual since 'Structure' is an abstract class |
| 41 | |
| 42 | |
| 43 | //======================================================================== |
| 44 | /** Returns the GRAPHIC_CODE of the next level |
| 45 | */ |
| 46 | const OPENCITY_GRAPHIC_CODE |
| 47 | GetNextLevelGraphicCode() const; |
| 48 | |
| 49 | |
| 50 | //======================================================================== |
| 51 | /** Returns the GRAPHIC_CODE of the previous level |
| 52 | */ |
| 53 | const OPENCITY_GRAPHIC_CODE |
| 54 | GetPreviousLevelGraphicCode() const; |
| 55 | |
| 56 | |
| 57 | const bool |
| 58 | LevelUp(); |
| 59 | |
| 60 | const bool |
| 61 | LevelDown(); |
| 62 | |
| 63 | }; |
| 64 | |
| 65 | #endif |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 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 |