]> ruin.nu Git - hbs.git/commitdiff
some stuff
authorMichael Andreen <harv@ruin.nu>
Wed, 6 Mar 2002 19:30:01 +0000 (19:30 +0000)
committerMichael Andreen <harv@ruin.nu>
Wed, 6 Mar 2002 19:30:01 +0000 (19:30 +0000)
bs/docs/api/hbs.doxconf
bs/fleet.h
bs/unittype.cpp

index 2fc7150caf0c3573feee0f87aa14849a883a6317..8b3fc7256b54fd3a0d9d4ef4c974db2b6e90009b 100644 (file)
@@ -123,7 +123,7 @@ CLASS_DIAGRAMS         = YES
 # If the SOURCE_BROWSER tag is set to YES then a list of source files will 
 # be generated. Documented entities will be cross-referenced with these sources.
 
-SOURCE_BROWSER         = NO
+SOURCE_BROWSER         = YES
 
 # Setting the INLINE_SOURCES tag to YES will include the body 
 # of functions and classes directly in the documentation.
@@ -134,7 +134,7 @@ INLINE_SOURCES         = NO
 # doxygen to hide any special comment blocks from generated source code 
 # fragments. Normal C and C++ comments will always remain visible.
 
-STRIP_CODE_COMMENTS    = YES
+STRIP_CODE_COMMENTS    = NO
 
 # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
 # file names in lower case letters. If set to YES upper case letters are also 
index 7c2f817f4f60b6afb43d7c9d87633f072b3c9fc3..3bdd4ce5719042c6e7d6818d0d41ccf151d0dc21 100644 (file)
@@ -26,6 +26,7 @@
 //!This is the engine for the whole battlesystem.
 /**This is the engine for the whole battlesystem.
   *    One of the few parts that I plan make fully portable.
+  *\todo LOTS (I think ;)
   *@author Michael Andreen
   */
 
index 38af1dacb45d6842462a7b99cca9eaef568ceace..69b2d2d9c09b3f9b20cb2b36c7223437fc6c43ee 100644 (file)
 #include <iostream>
 using namespace std;
 
+//////////////////////////////////////////////////////////////////////////
+//
+
 UnitType::UnitType()
 {
 }
+//////////////////////////////////////////////////////////////////////////
+//
 UnitType::~UnitType(){
 }
 
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setName(string sName)
 {
        m_sName = sName;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 string UnitType::Name()
 {
        return m_sName;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setRace(int iRace)
 {
        m_iRace = iRace;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int UnitType::Race()
 {
        return m_iRace;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setClass(int iClass)
 {
        m_iClass = iClass;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int UnitType::iClass()
 {
        return m_iClass;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setTarget(vector<int> Target)
 {
        m_vTarget = Target;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::addTarget(int iTarget)
 {
        m_vTarget.push_back(iTarget);
 }
 
-/** This function iterates through the list until it finds the right positition. If it finds the position it inserts the target there, if it reaches the end before it finds the correct possition it adds the target to the end. 
+//////////////////////////////////////////////////////////////////////////
+//
+/** This function iterates through the list until it finds the right positition.
+ * If it finds the position it inserts the target there, if it reaches the end 
+ * before it finds the correct possition it adds the target to the end. 
  */
 void UnitType::insTarget(int iTarget, int index = 0)
 {
@@ -85,121 +110,169 @@ void UnitType::insTarget(int iTarget, int index = 0)
        m_vTarget.insert(i, iTarget);
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 vector<int> UnitType::Target()
 {
        return m_vTarget;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int    UnitType::Target(int index)
 {
        return m_vTarget[index];
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setInitiative(int iInit)
 {
        m_iInitiative = iInit;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int     UnitType::Initiative()
 {
        return m_iInitiative;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setAgility (int iAgil)
 {
        m_iAgility = iAgil;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::Agility()
 {
        return m_iAgility;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setWeaponSpeed(int iWPSP)
 {
        m_iWeaponSpeed = iWPSP;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::WeaponSpeed()
 {
        return m_iWeaponSpeed;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setGuns(int iGuns)
 {
        m_iGuns = iGuns;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int UnitType::Guns()
 {
        return m_iGuns;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setPower(int iPower)
 {
        m_iPower = iPower;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::Power()
 {
        return m_iPower;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setArmor(int iArmor)
 {
        m_iArmor = iArmor;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::Armor()
 {
        return m_iArmor;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setEMP(int iEMP)
 {
        m_iEMP = iEMP;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::EMP()
 {
        return m_iEMP;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setTotalResources(int iTR)
 {
        m_iTotalResources = iTR;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int UnitType::TotRes()
 {
        return m_iTotalResources;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setFuel(int iFuel)
 {
        m_iFuel = iFuel;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::Fuel()
 {
        return m_iFuel;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setETA(int iETA)
 {
        m_iETA = iETA;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::ETA()
 {
        return m_iETA;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 void UnitType::setType(int iType)
 {
        m_iType = iType;
 }
 
+//////////////////////////////////////////////////////////////////////////
+//
 int  UnitType::Type()
 {
        return m_iType;