DLA-Fire-Prediction-Thesis 1.0

FuelObject.h

Go to the documentation of this file.
00001 #ifndef _FUELOBJECT_H_
00002 #define _FUELOBJECT_H_
00003 
00004 #include "ngl/Vector.h"
00005 
00006 //----------------------------------------------------------------------------------------------------------------------
00018 //----------------------------------------------------------------------------------------------------------------------
00019 
00020 class FuelObject
00021 {
00022 public:
00023     //----------------------------------------------------------------------------------------------------------------------
00025     //----------------------------------------------------------------------------------------------------------------------
00026     FuelObject();
00027 
00028     //----------------------------------------------------------------------------------------------------------------------
00033     //----------------------------------------------------------------------------------------------------------------------
00034     FuelObject(
00035               ngl::Vector _objectPosition,
00036               int _objectStatus,
00037               int _objectShape
00038               );
00039 
00040     //----------------------------------------------------------------------------------------------------------------------
00043     //----------------------------------------------------------------------------------------------------------------------
00044     ngl::Vector& getPosition();
00045 
00046     //----------------------------------------------------------------------------------------------------------------------
00049     //----------------------------------------------------------------------------------------------------------------------
00050     ngl::Vector& getColour();
00051 
00052     //----------------------------------------------------------------------------------------------------------------------
00055     //----------------------------------------------------------------------------------------------------------------------
00056     void makeToBeflammable(
00057                      float _fuel
00058                      );
00059     //----------------------------------------------------------------------------------------------------------------------
00061     //----------------------------------------------------------------------------------------------------------------------
00062     void makeToBeNonflammable();
00063 
00064     //----------------------------------------------------------------------------------------------------------------------
00066     //----------------------------------------------------------------------------------------------------------------------
00067     void setFire();
00068 
00069     //----------------------------------------------------------------------------------------------------------------------
00072     //----------------------------------------------------------------------------------------------------------------------
00073     bool isFlammable();
00074 
00075     //----------------------------------------------------------------------------------------------------------------------
00078     //----------------------------------------------------------------------------------------------------------------------
00079     bool isBurning();
00080 
00081     //----------------------------------------------------------------------------------------------------------------------
00084     //----------------------------------------------------------------------------------------------------------------------
00085     float getCurrentFuelValue();
00086 
00087     //----------------------------------------------------------------------------------------------------------------------
00090     //----------------------------------------------------------------------------------------------------------------------
00091     void subtractFuel(
00092                      float _decreaseAmount
00093                      );
00094 
00095     //----------------------------------------------------------------------------------------------------------------------
00098     //----------------------------------------------------------------------------------------------------------------------
00099     void changeColour(
00100                      ngl::Vector _assignedColour
00101                      );
00102 
00103     //----------------------------------------------------------------------------------------------------------------------
00106     //----------------------------------------------------------------------------------------------------------------------
00107     void setFuelAmount(
00108                       float _newFuel
00109                       );
00110 
00111     //----------------------------------------------------------------------------------------------------------------------
00114     //----------------------------------------------------------------------------------------------------------------------
00115     float getMoisture();
00116 
00117     //----------------------------------------------------------------------------------------------------------------------
00120     //---------------------------------------------------------------------------------------------------------------------
00121     void decreaseMoisture(
00122                          float _decreasedAmount
00123                          );
00124 
00125     //----------------------------------------------------------------------------------------------------------------------
00128     //----------------------------------------------------------------------------------------------------------------------
00129     int getShape();
00130 
00131     //----------------------------------------------------------------------------------------------------------------------
00134     //----------------------------------------------------------------------------------------------------------------------
00135     float getHeight();
00136 
00137     //----------------------------------------------------------------------------------------------------------------------
00140     //----------------------------------------------------------------------------------------------------------------------
00141     float getRadius();
00142 
00143     //----------------------------------------------------------------------------------------------------------------------
00146     //----------------------------------------------------------------------------------------------------------------------
00147     void setRadius(
00148                   float _newRadious
00149                   );
00150 
00151     //----------------------------------------------------------------------------------------------------------------------
00154     //----------------------------------------------------------------------------------------------------------------------
00155     void setHeight(
00156                   float _newHeight
00157                   );
00158 
00159     //----------------------------------------------------------------------------------------------------------------------
00162     //----------------------------------------------------------------------------------------------------------------------
00163     void setPosition(
00164                     ngl::Vector _newPos
00165                     );
00166 
00167 private:
00168     //----------------------------------------------------------------------------------------------------------------------
00170     //----------------------------------------------------------------------------------------------------------------------
00171     bool m_isFlammable;
00172 
00173     //----------------------------------------------------------------------------------------------------------------------
00175     //----------------------------------------------------------------------------------------------------------------------
00176     bool m_isBurning;
00177 
00178     //----------------------------------------------------------------------------------------------------------------------
00180     //----------------------------------------------------------------------------------------------------------------------
00181     ngl::Vector m_position;
00182 
00183     //----------------------------------------------------------------------------------------------------------------------
00185     //----------------------------------------------------------------------------------------------------------------------
00186     float m_fuel;
00187 
00188     //----------------------------------------------------------------------------------------------------------------------
00190     //----------------------------------------------------------------------------------------------------------------------
00191     float m_moisture;
00192 
00193     //----------------------------------------------------------------------------------------------------------------------
00195     //----------------------------------------------------------------------------------------------------------------------
00196     ngl::Vector m_currentColour;
00197 
00198     //----------------------------------------------------------------------------------------------------------------------
00200     //----------------------------------------------------------------------------------------------------------------------
00201     int m_objectShape;
00202     //----------------------------------------------------------------------------------------------------------------------
00204     //----------------------------------------------------------------------------------------------------------------------
00205     float m_objectRadius;
00206     //----------------------------------------------------------------------------------------------------------------------
00208     //----------------------------------------------------------------------------------------------------------------------
00209     float m_objectHeight;
00210 
00211 
00212 }; // end class
00213 
00214 #endif // _FUELOBJECT_H_
00215 
00216 //----------------------------------------------------------------------------------------------------------------------
 All Classes Namespaces Files Functions Variables Enumerations Enumerator