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_CREATURES_HUMANOIDS_DWARF_H
00026 # define OGS_CREATURES_HUMANOIDS_DWARF_H
00027
00028 # include <ogs/core/details/Maturity.h>
00029 # include <ogs/creatures/Humanoid.h>
00030 # include <ogs/creatures/humanoids/Namespace.h>
00031
00032 OGS_BEGIN_CREATURES_HUMANOIDS_NAMESPACE
00033
00034 using ogs::core::Die;
00035
00064 class Dwarf: public ogs::creatures::Humanoid,
00065 public ogs::core::details::Maturity {
00066 public:
00067
00068 unsigned getAdultAge () const;
00069 unsigned getMiddleAge () const;
00070 unsigned getOldAge () const;
00071 unsigned getVenerableAge () const;
00072 const Die& getMaximumAge () const;
00073
00074 private:
00075 static Die _maximumAge;
00076 };
00077
00084 inline unsigned Dwarf::getAdultAge () const {
00085 return (40);
00086 }
00087
00094 inline unsigned Dwarf::getMiddleAge () const {
00095 return (125);
00096 }
00097
00104 inline unsigned Dwarf::getOldAge () const {
00105 return (188);
00106 }
00107
00114 inline unsigned Dwarf::getVenerableAge () const {
00115 return (250);
00116 }
00117
00124 inline const Die& Dwarf::getMaximumAge () const {
00125 return (_maximumAge);
00126 }
00127
00128 OGS_END_CREATURES_HUMANOIDS_NAMESPACE
00129
00130 # endif
00131
00132 #endif
00133