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_SKILLS_SPOT_H
00026 # define OGS_SKILLS_SPOT_H
00027
00028 # include <ogs/core/Modifier.h>
00029 # include <ogs/core/Skill.h>
00030 # include <ogs/skills/CommonSkills.h>
00031 # include <ogs/skills/Namespace.h>
00032
00033 OGS_BEGIN_SKILLS_NAMESPACE
00034
00038 class Spot: public ogs::core::Skill {
00039 public:
00040 Spot (Points cclassPoints = 0, float distance = 0.0,
00041 bool distracted = false);
00042
00043 float getDistance () const;
00044 void setDistance (float distance);
00045 bool isDistracted () const;
00046 void setDistracted (bool distracted = true);
00047
00048 private:
00049 float _distance;
00050 ogs::core::Modifier _distanceModifier;
00051 bool _distracted;
00052 static ogs::core::Modifier _distractedModifier;
00053 };
00054
00060 inline float Spot::getDistance () const {
00061 return (this->_distance);
00062 }
00063
00069 inline bool Spot::isDistracted () const {
00070 return (this->_distracted);
00071 }
00072
00073 OGS_END_SKILLS_NAMESPACE
00074
00075 # endif
00076
00077 #endif
00078