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_CCLASSES_RANGER_H
00026 # define OGS_CCLASSES_RANGER_H
00027
00028 # include <vector>
00029
00030 # include <ogs/core/CClass.h>
00031 # include <ogs/core/Die.h>
00032 # include <ogs/core/Saves.h>
00033 # include <ogs/magic/Types.h>
00034 # include <ogs/cclasses/Namespace.h>
00035
00036 OGS_BEGIN_CCLASSES_NAMESPACE
00037
00062 class Ranger: public ogs::core::CClass {
00063 public:
00067 static const ogs::core::Die::Sides HIT_DIE = ogs::core::Die::d10;
00068
00073 static const ogs::core::Skill::Points SKILL_RATE = 4;
00074
00075 Ranger (ogs::core::XP::Level xpLevel = 1);
00076
00077 ogs::magic::SpellCounts getSpellsPerDay () const;
00078
00079 protected:
00080 ogs::core::Modifier::Value getBaseAttackValue () const;
00081 ogs::core::Modifier::Value getBaseFortSaveValue () const;
00082 };
00083
00089 inline Ranger::Ranger (ogs::core::XP::Level xpLevel):
00090 CClass (HIT_DIE, SKILL_RATE, xpLevel,
00091 ogs::core::XP::getAverageAttack (xpLevel),
00092 ogs::core::Saves::getWeakBonus (xpLevel),
00093 ogs::core::Saves::getWeakBonus (xpLevel),
00094 ogs::core::Saves::getWeakBonus (xpLevel)) {
00095
00096 }
00097
00104 inline ogs::core::Modifier::Value
00105 Ranger::getBaseAttackValue () const {
00106 return (ogs::core::XP::getStrongAttack (getLevel ()));
00107 }
00108
00116 inline ogs::core::Modifier::Value
00117 Ranger::getBaseFortSaveValue () const {
00118 return (ogs::core::Saves::getStrongBonus (getLevel ()));
00119 }
00120
00121 OGS_END_CCLASSES_NAMESPACE
00122
00123 # endif
00124
00125 #endif
00126