X-Git-Url: https://ruin.nu/git/?p=hbs.git;a=blobdiff_plain;f=bs%2Funittype.h;h=3357671df7816b31341e4cf6b9846e77d6918122;hp=dc34516bb8562a318b655487b602a76a9ea868b4;hb=dc90594097a886eee49e9bfe45da6d4f9765179a;hpb=f1e79e13d76a63700e6345503e338afaa93c102d diff --git a/bs/unittype.h b/bs/unittype.h index dc34516..3357671 100644 --- a/bs/unittype.h +++ b/bs/unittype.h @@ -49,22 +49,22 @@ public: 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 Target); + void setTarget(std::vector 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 Target(); + std::vector 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); @@ -110,14 +110,14 @@ public: /** 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 m_vTarget; + std::string m_sClass; + std::vector m_vTarget; int m_iInitiative; int m_iAgility; int m_iWeaponSpeed; @@ -126,7 +126,7 @@ protected: 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; };