BWAPI
Aiur/include/BWAPI/DamageType.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <set>
00004 namespace BWAPI
00005 {
00006   class DamageType
00007   {
00008     public:
00009       DamageType();
00010       DamageType(int id);
00011       DamageType(const DamageType& other);
00012       DamageType& operator=(const DamageType& other);
00013       operator int() const;
00014 
00016       int getID() const;
00017 
00020       std::string getName() const;
00021     private:
00022       int id;
00023   };
00024   namespace DamageTypes
00025   {
00028     DamageType getDamageType(std::string name);
00029 
00031     std::set<DamageType>& allDamageTypes();
00032 
00033     void init();
00034     extern const DamageType Independent;
00035     extern const DamageType Explosive;
00036     extern const DamageType Concussive;
00037     extern const DamageType Normal;
00038     extern const DamageType Ignore_Armor;
00039     extern const DamageType None;
00040     extern const DamageType Unknown;
00041   }
00042 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines