int Race();
/** Sets the class for the unittype, it's represented as a integer */
- void setClass(int iClass);
- int iClass();
+ void setClass(std::string sClass);
+ std::string Class();
/** Sets the classes that this unittype targets. a vector is used. */
- void setTarget(std::vector<int> Target);
+ void setTarget(std::vector<std::string> Target);
/** This function adds a target class to the end of the target list. */
- void addTarget(int iTarget);
+ void addTarget(std::string target);
/** This function inserts a target class into the target list. The default is in the beginning.
* \param iTarget an integer that represents the target's class.
* \param index where to place the target. 0 being the default and first place. */
- void insTarget(int iTarget, int index = 0);
+ void insTarget(std::string iTarget, int index = 0);
/** Returns all targets from the target list */
- std::vector<int> Target();
+ std::vector<std::string> Target();
/** Returns a specific target
* \param index An index value that represents the target. 0 being the first*/
- int Target(int index);
+ std::string Target(int index);
/** Sets the initiatve, the lower it is the earlier the unit shots */
void setInitiative(int iInit);
/** Sets the type of the unit. What the types do must be specified in the real battle engine (Fleet) though.
* \param iType An integer to symbolise the type. */
- void setType(int iType);
+ void setType(std::string type);
/** What type of ship this is. */
- int Type();
+ std::string Type();
protected:
std::string m_sName;
int m_iRace; //!< Not really the race, but an indiaction on what race can use it..
- int m_iClass;
- std::vector<int> m_vTarget;
+ std::string m_sClass;
+ std::vector<std::string> m_vTarget;
int m_iInitiative;
int m_iAgility;
int m_iWeaponSpeed;
int m_iArmor;
int m_iEMP;
int m_iTotalResources;
- int m_iType; //!< normal,emp,cloak,steal,pod
+ std::string m_sType; //!< normal,emp,cloak,steal,pod
int m_iETA;
int m_iFuel;
};