int EMP() const;
/** Sets the resource cost for this unittype. Used for example for score calculation and so on. */
- void setTotalResources(int iTR);
+ void setResources(std::string type, int i);
+ void setResources(std::map<std::string, int> res);
/** Returns the number of total resources this unittype cost. */
int totRes() const;
+ std::map<std::string, int> resources();
+
/** Sets the fuelcost for this unittype */
void setFuel(int iFuel);
/** Returns the fuelcost */
int m_iRace; //!< Not really the race, but an indiaction on what race can use it..
std::string m_sClass;
std::vector<std::string> m_vTarget;
- int m_iInitiative;
- int m_iAgility;
- int m_iWeaponSpeed;
- int m_iGuns;
- int m_iPower;
- int m_iArmor;
- int m_iEMP;
- int m_iTotalResources;
- std::string m_sType; //!< normal,emp,cloak,steal,pod
- int m_iETA;
- int m_iFuel;
+ int m_iInitiative;
+ int m_iAgility;
+ int m_iWeaponSpeed;
+ int m_iGuns;
+ int m_iPower;
+ int m_iArmor;
+ int m_iEMP;
+ std::map<std::string, int> m_Resources;
+ std::string m_sType; //!< normal,emp,cloak,steal,pod
+ int m_iETA;
+ int m_iFuel;
};
#endif