DLA-Fire-Prediction-Thesis 1.0
|
00001 #ifndef _FUELPOINT_H_ 00002 #define _FUELPOINT_H_ 00003 00004 #include "ngl/Vector.h" 00005 00006 //---------------------------------------------------------------------------------------------------------------------- 00023 //---------------------------------------------------------------------------------------------------------------------- 00024 00025 class FuelPoint 00026 { 00027 public: 00028 //---------------------------------------------------------------------------------------------------------------------- 00030 //---------------------------------------------------------------------------------------------------------------------- 00031 FuelPoint(); 00032 00033 //---------------------------------------------------------------------------------------------------------------------- 00037 //---------------------------------------------------------------------------------------------------------------------- 00038 FuelPoint( 00039 ngl::Vector _pointPosition, 00040 int _pointStatus 00041 ); 00042 00043 //---------------------------------------------------------------------------------------------------------------------- 00046 //---------------------------------------------------------------------------------------------------------------------- 00047 ngl::Vector& getPosition(); 00048 00049 //---------------------------------------------------------------------------------------------------------------------- 00052 //---------------------------------------------------------------------------------------------------------------------- 00053 ngl::Vector& getColour(); 00054 00055 //---------------------------------------------------------------------------------------------------------------------- 00058 //---------------------------------------------------------------------------------------------------------------------- 00059 void makeToBeflammable( 00060 float _fuel 00061 ); 00062 00063 //---------------------------------------------------------------------------------------------------------------------- 00065 //---------------------------------------------------------------------------------------------------------------------- 00066 void makeToBeNonflammable(); 00067 00068 //---------------------------------------------------------------------------------------------------------------------- 00070 //---------------------------------------------------------------------------------------------------------------------- 00071 void setFire(); 00072 00073 //---------------------------------------------------------------------------------------------------------------------- 00076 //---------------------------------------------------------------------------------------------------------------------- 00077 bool isFlammable(); 00078 00079 //---------------------------------------------------------------------------------------------------------------------- 00082 //---------------------------------------------------------------------------------------------------------------------- 00083 bool isBurning(); 00084 00085 //---------------------------------------------------------------------------------------------------------------------- 00088 //---------------------------------------------------------------------------------------------------------------------- 00089 float getCurrentFuelValue(); 00090 00091 //---------------------------------------------------------------------------------------------------------------------- 00094 //---------------------------------------------------------------------------------------------------------------------- 00095 void subtractFuel( 00096 float _decreaseAmount 00097 ); 00098 00099 //---------------------------------------------------------------------------------------------------------------------- 00102 //---------------------------------------------------------------------------------------------------------------------- 00103 void changeColour( 00104 ngl::Vector _assignedColour 00105 ); 00106 00107 //---------------------------------------------------------------------------------------------------------------------- 00110 //---------------------------------------------------------------------------------------------------------------------- 00111 void setFuelAmount( 00112 float _newFuel 00113 ); 00114 00115 //---------------------------------------------------------------------------------------------------------------------- 00118 //---------------------------------------------------------------------------------------------------------------------- 00119 float getMoisture(); 00120 00121 //---------------------------------------------------------------------------------------------------------------------- 00124 //---------------------------------------------------------------------------------------------------------------------- 00125 void decreaseMoisture( 00126 float _decreasedAmount 00127 ); 00128 00129 //---------------------------------------------------------------------------------------------------------------------- 00132 //---------------------------------------------------------------------------------------------------------------------- 00133 void setPosition( 00134 ngl::Vector _newPosition 00135 ); 00136 00137 //---------------------------------------------------------------------------------------------------------------------- 00140 //---------------------------------------------------------------------------------------------------------------------- 00141 float getCircleSize(); 00142 00143 //---------------------------------------------------------------------------------------------------------------------- 00146 //---------------------------------------------------------------------------------------------------------------------- 00147 float getCircleHeight(); 00148 00149 //---------------------------------------------------------------------------------------------------------------------- 00152 //---------------------------------------------------------------------------------------------------------------------- 00153 void setCircleHeight( 00154 float m_circleHeight 00155 ); 00156 00157 //---------------------------------------------------------------------------------------------------------------------- 00160 //---------------------------------------------------------------------------------------------------------------------- 00161 bool isMointain(); 00162 00163 //---------------------------------------------------------------------------------------------------------------------- 00167 //---------------------------------------------------------------------------------------------------------------------- 00168 void setToBeMountain( 00169 float _circleSize, 00170 float _circleHeight 00171 ); 00172 00173 //---------------------------------------------------------------------------------------------------------------------- 00176 //---------------------------------------------------------------------------------------------------------------------- 00177 void setToBeBigFuel( 00178 float _fuelAmount 00179 ); 00180 00181 //---------------------------------------------------------------------------------------------------------------------- 00184 //---------------------------------------------------------------------------------------------------------------------- 00185 bool isFuel(); 00186 00187 //---------------------------------------------------------------------------------------------------------------------- 00189 //---------------------------------------------------------------------------------------------------------------------- 00190 void setToBeNonBigFuel(); 00191 00192 //---------------------------------------------------------------------------------------------------------------------- 00195 //---------------------------------------------------------------------------------------------------------------------- 00196 void setBurningTime( 00197 float _burningTime 00198 ); 00199 00200 //---------------------------------------------------------------------------------------------------------------------- 00203 //---------------------------------------------------------------------------------------------------------------------- 00204 float getBurningTime(); 00205 00206 //---------------------------------------------------------------------------------------------------------------------- 00209 //---------------------------------------------------------------------------------------------------------------------- 00210 float getEmittedHeat(); 00211 00212 //---------------------------------------------------------------------------------------------------------------------- 00215 //---------------------------------------------------------------------------------------------------------------------- 00216 void setEmittedHeat( 00217 float _heat 00218 ); 00219 00220 //---------------------------------------------------------------------------------------------------------------------- 00223 //---------------------------------------------------------------------------------------------------------------------- 00224 void setNewMoisture( 00225 float _moistureAmount 00226 ); 00227 00228 //---------------------------------------------------------------------------------------------------------------------- 00231 //---------------------------------------------------------------------------------------------------------------------- 00232 void setGeneration( 00233 int _generationNumber 00234 ); 00235 00236 //---------------------------------------------------------------------------------------------------------------------- 00239 //---------------------------------------------------------------------------------------------------------------------- 00240 int getGeneration(); 00241 00242 //---------------------------------------------------------------------------------------------------------------------- 00244 //---------------------------------------------------------------------------------------------------------------------- 00245 void setToOrigin(); 00246 00247 //---------------------------------------------------------------------------------------------------------------------- 00249 //---------------------------------------------------------------------------------------------------------------------- 00250 void setToRegular(); 00251 00252 //---------------------------------------------------------------------------------------------------------------------- 00255 //---------------------------------------------------------------------------------------------------------------------- 00256 bool isOrigin(); 00257 00258 //---------------------------------------------------------------------------------------------------------------------- 00261 //---------------------------------------------------------------------------------------------------------------------- 00262 int getGridIndex(); 00263 //---------------------------------------------------------------------------------------------------------------------- 00266 //---------------------------------------------------------------------------------------------------------------------- 00267 void setGridIndex( 00268 int _gridIndex 00269 ); 00270 00271 //---------------------------------------------------------------------------------------------------------------------- 00274 //---------------------------------------------------------------------------------------------------------------------- 00275 int getBurningFormNumber(); 00276 //---------------------------------------------------------------------------------------------------------------------- 00279 //---------------------------------------------------------------------------------------------------------------------- 00280 void setBurningFormNumber( 00281 int _formNumber 00282 ); 00283 //---------------------------------------------------------------------------------------------------------------------- 00285 //---------------------------------------------------------------------------------------------------------------------- 00286 void setToBeBurningDown(); 00287 //---------------------------------------------------------------------------------------------------------------------- 00290 //---------------------------------------------------------------------------------------------------------------------- 00291 bool isBurningDown(); 00292 00293 void setDrawingFlag(bool _drawFlag); 00294 bool canDraw(); 00295 private: 00296 //---------------------------------------------------------------------------------------------------------------------- 00298 //---------------------------------------------------------------------------------------------------------------------- 00299 bool m_isFlammable; 00300 00301 //---------------------------------------------------------------------------------------------------------------------- 00303 //---------------------------------------------------------------------------------------------------------------------- 00304 bool m_isBurning; 00305 00306 //---------------------------------------------------------------------------------------------------------------------- 00308 //---------------------------------------------------------------------------------------------------------------------- 00309 ngl::Vector m_position; 00310 00311 //---------------------------------------------------------------------------------------------------------------------- 00313 //---------------------------------------------------------------------------------------------------------------------- 00314 float m_fuel; 00315 00316 //---------------------------------------------------------------------------------------------------------------------- 00318 //---------------------------------------------------------------------------------------------------------------------- 00319 float m_moisture; 00320 00321 //---------------------------------------------------------------------------------------------------------------------- 00323 //---------------------------------------------------------------------------------------------------------------------- 00324 ngl::Vector m_currentColour; 00325 00326 //---------------------------------------------------------------------------------------------------------------------- 00328 //---------------------------------------------------------------------------------------------------------------------- 00329 float m_pointCircleSize; 00330 //---------------------------------------------------------------------------------------------------------------------- 00332 //---------------------------------------------------------------------------------------------------------------------- 00333 float m_pointCircleHeight; 00334 //---------------------------------------------------------------------------------------------------------------------- 00336 //---------------------------------------------------------------------------------------------------------------------- 00337 bool m_isMountainPoint; 00338 00339 //---------------------------------------------------------------------------------------------------------------------- 00341 //---------------------------------------------------------------------------------------------------------------------- 00342 bool m_isOrigin; 00343 //---------------------------------------------------------------------------------------------------------------------- 00345 //---------------------------------------------------------------------------------------------------------------------- 00346 bool m_isFuel; 00347 //---------------------------------------------------------------------------------------------------------------------- 00349 //---------------------------------------------------------------------------------------------------------------------- 00350 float m_burningTimeAtThePoint; 00351 //---------------------------------------------------------------------------------------------------------------------- 00353 //---------------------------------------------------------------------------------------------------------------------- 00354 float m_emittedHeat; 00355 //---------------------------------------------------------------------------------------------------------------------- 00357 //---------------------------------------------------------------------------------------------------------------------- 00358 int m_generation; 00359 //---------------------------------------------------------------------------------------------------------------------- 00361 //---------------------------------------------------------------------------------------------------------------------- 00362 int m_gridIndex; 00363 //---------------------------------------------------------------------------------------------------------------------- 00365 //---------------------------------------------------------------------------------------------------------------------- 00366 int m_burningFormNumber; 00367 //---------------------------------------------------------------------------------------------------------------------- 00369 //---------------------------------------------------------------------------------------------------------------------- 00370 bool m_isBurningDown; 00371 00372 bool m_draw; 00373 }; // end class 00374 00375 #endif // _FUELPOINT_H_ 00376 00377 //----------------------------------------------------------------------------------------------------------------------