00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef __cplusplus
00024
00025 # ifndef OGS_FEATS_ARMOR_PROFICIENCY_H
00026 # define OGS_FEATS_ARMOR_PROFICIENCY_H
00027
00028 # include <ogs/core/Feat.h>
00029 # include <ogs/feats/Namespace.h>
00030 # include <ogs/items/Armor.h>
00031
00032 OGS_BEGIN_FEATS_NAMESPACE
00033
00044 class ArmorProficiency: public ogs::core::Feat {
00045 public:
00046 static ArmorProficiency* createLight ();
00047 static ArmorProficiency* createMedium ();
00048 static ArmorProficiency* createHeavy ();
00049
00050 ogs::items::Armor::Proficiency getProficiency () const;
00051 bool isProficient (const ogs::items::Armor& armor) const;
00052
00053 private:
00054 ogs::items::Armor::Proficiency _proficiency;
00055
00056 ArmorProficiency (ogs::items::Armor::Proficiency proficiency);
00057
00058 bool canAttach (const Object& object) const;
00059 };
00060
00066 inline ogs::items::Armor::Proficiency
00067 ArmorProficiency::getProficiency () const {
00068 return (this->_proficiency);
00069 }
00070
00071 OGS_END_FEATS_NAMESPACE
00072
00073 # endif
00074
00075 #endif
00076