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_SORCERER_H
00026 # define OGS_CCLASSES_SORCERER_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
00048 class Sorcerer: public ogs::core::CClass {
00049 public:
00053 static const ogs::core::Die::Sides HIT_DIE = ogs::core::Die::d4;
00054
00059 static const ogs::core::Skill::Points SKILL_RATE = 2;
00060
00061 Sorcerer (ogs::core::XP::Level xpLevel = 1);
00062
00063 ogs::magic::SpellCounts getSpellsPerDay () const;
00064 ogs::magic::SpellCounts getSpellsKnown () const;
00065
00066 protected:
00067 ogs::core::Modifier::Value getBaseAttackValue () const;
00068 ogs::core::Modifier::Value getBaseWillSaveValue () const;
00069 };
00070
00076 inline Sorcerer::Sorcerer (ogs::core::XP::Level xpLevel):
00077 CClass (HIT_DIE, SKILL_RATE, xpLevel,
00078 ogs::core::XP::getAverageAttack (xpLevel),
00079 ogs::core::Saves::getWeakBonus (xpLevel),
00080 ogs::core::Saves::getWeakBonus (xpLevel),
00081 ogs::core::Saves::getWeakBonus (xpLevel)) {
00082
00083 }
00084
00091 inline ogs::core::Modifier::Value
00092 Sorcerer::getBaseAttackValue () const {
00093 return (ogs::core::XP::getWeakAttack (getLevel ()));
00094 }
00095
00102 inline ogs::core::Modifier::Value
00103 Sorcerer::getBaseWillSaveValue () const {
00104 return (ogs::core::Saves::getStrongBonus (getLevel ()));
00105 }
00106
00107 OGS_END_CCLASSES_NAMESPACE
00108
00109 # endif
00110
00111 #endif
00112