Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Paladin.h

00001 /*
00002  * Paladin.h -- class interface for paladins
00003  * Copyright (C) 2002  Eric Lemings <elemings@users.sourceforge.net>
00004  *
00005  * This software is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This software is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this software; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018  * 02111-1307, USA
00019  *
00020  * RCS: $Id: Paladin.h,v 1.5 2003/04/18 01:41:01 elemings Exp $
00021  */
00022 
00023 #ifdef __cplusplus
00024 
00025 #  ifndef OGS_CCLASSES_PALADIN_H
00026 #    define OGS_CCLASSES_PALADIN_H
00027 
00028 #    include <vector>
00029 
00030 #    include <ogs/core/CClass.h>
00031 #    include <ogs/core/Die.h>
00032 #    include <ogs/core/Experience.h>
00033 #    include <ogs/core/Saves.h>
00034 #    include <ogs/magic/Types.h>
00035 #    include <ogs/cclasses/Namespace.h>
00036 
00037 OGS_BEGIN_CCLASSES_NAMESPACE
00038 
00058 class Paladin: public ogs::core::CClass {
00059   public:
00063     static const ogs::core::Die::Sides HIT_DIE = ogs::core::Die::d10;
00064 
00069     static const ogs::core::Skill::Points SKILL_RATE = 2;
00070 
00071     Paladin (ogs::core::XP::Level xpLevel = 1);
00072 
00073     bool attachObject (ogs::support::Object& object);
00074     bool detachObject ();
00075 
00076     ogs::magic::SpellCounts getSpellsPerDay () const;
00077 
00078   private:
00079     ogs::core::Feats _feats;
00080 
00081     class ogs::core::Creature;
00082     void addProficiency (ogs::core::Creature& creature,
00083                          ogs::core::Feat* featPtr);
00084 
00085     void addProficiencies ();
00086     void removeProficiencies ();
00087     void addDivineGrace ();
00088     void removeDivineGrace ();
00089 };
00090 
00091 OGS_END_CCLASSES_NAMESPACE
00092 
00093 #  endif /* !defined OGS_CCLASSES_PALADIN_H */
00094 
00095 #endif /* defined __cplusplus */
00096 

Generated on Sun Apr 20 03:36:23 2003 for Open Gaming System (OGS) by doxygen1.3