]> ruin.nu Git - hbs.git/blobdiff - bs/unittype.h
changed my internal structure from Fleet to Fleet*
[hbs.git] / bs / unittype.h
index 9bf008e83eeeb8e1294aa94b5f595db4f3b21e90..cbb73bac9ebdd4dfd2f21791bd1c1554d4b4ec1b 100644 (file)
@@ -46,11 +46,11 @@ public:
        /** This functions sets which race this unittype is, the race is represented with a integer. */
        void setRace(int iRace);
        /** Returns the race this unittype belongs to*/
-       int Race() const;
+       int race() const;
 
        /** Sets the class for the unittype, it's represented as a integer */
-       void setClass(std::string sClass);
-       std::string Class() const;
+       void setUnitClass(std::string sClass);
+       std::string unitClass() const;
 
        /** Sets the classes that this unittype targets. a vector is used. */
        void setTarget(std::vector<std::string> Target);
@@ -61,34 +61,34 @@ public:
         * \param index where to place the target. 0 being the default and first place. */
        void insTarget(std::string iTarget, int index = 0);
        /** Returns all targets from the target list */
-       std::vector<std::string> Target() const;
+       std::vector<std::string> target() const;
        /** Returns a specific target 
         * \param index An index value that represents the target. 0 being the first*/
-       std::string     Target(int index) const;
+       std::string     target(int index) const;
 
        /** Sets the initiatve, the lower it is the earlier the unit shots */
        void setInitiative(int iInit);
-       int      Initiative() const;
+       int      initiative() const;
 
        /** Sets the agility, the higher it is the harder it is to hit the unit */
        void setAgility (int iAgil);
-       int  Agility() const;
+       int  agility() const;
 
        /** Sets the weaponspeed.. just a simple integer that shows how good it is at hitting things */
        void setWeaponSpeed(int iWPSP);
-       int  WeaponSpeed() const;
+       int  weaponSpeed() const;
 
        /** Sets the number of guns. */
        void setGuns(int iGuns);
-       int Guns() const;
+       int guns() const;
 
        /** Sets the how much power the guns have.. or in other words: the damage they do. */
        void setPower(int iPower);
-       int  Power() const;
+       int  power() const;
 
        /** Sets the armor, this is how much damage the unittype can take before it's destroyed */
        void setArmor(int iArmor);
-       int  Armor() const;
+       int  armor() const;
 
        /** Sets the emp resistance, the lower value the easier it is to block it */
        void setEMP(int iEMP);
@@ -97,12 +97,12 @@ public:
        /** Sets the resource cost for this unittype. Used for example for score calculation and so on. */
        void setTotalResources(int iTR);
        /** Returns the number of total resources this unittype cost. */
-       int TotRes() const;
+       int totRes() const;
 
        /** Sets the fuelcost for this unittype */
        void setFuel(int iFuel);
        /** Returns the fuelcost */
-       int  Fuel() const;
+       int  fuel() const;
 
        /** Sets the ETA, the speed in a sort of inverted form.. the lower ETA, the faster is the unit */
        void setETA(int iETA);
@@ -112,7 +112,8 @@ public:
         * \param iType An integer to symbolise the type. */
        void setType(std::string type);
        /** What type of ship this is. */
-       std::string  Type() const;      
+       std::string  type() const;      
+
 protected:
        std::string             m_sName;
        int                     m_iRace;            //!< Not really the race, but an indiaction on what race can use it..