[ogs-changes] dist/c++/ogs/creatures/undeads Wraith.cpp,1.1,1.2 Wraith.h,1.1,1.2
Status: Alpha
Brought to you by:
elemings
From: <ele...@us...> - 2003-05-02 19:07:08
|
Update of /cvsroot/ogs/dist/c++/ogs/creatures/undeads In directory sc8-pr-cvs1:/tmp/cvs-serv32451/ogs/creatures/undeads Modified Files: Wraith.cpp Wraith.h Log Message: See C++ ChangeLog (May 2) for details. Index: Wraith.cpp =================================================================== RCS file: /cvsroot/ogs/dist/c++/ogs/creatures/undeads/Wraith.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Wraith.cpp 15 Apr 2003 16:58:40 -0000 1.1 --- Wraith.cpp 2 May 2003 19:06:31 -0000 1.2 *************** *** 23,29 **** #include "ogs/core/Abilities.h" #include "ogs/core/Die.h" - #include "ogs/core/Modifier.h" #include "ogs/core/Skill.h" #include "ogs/core/details/Alignment.h" #include "ogs/Skills.h" #include "ogs/feats/Alertness.h" --- 23,30 ---- #include "ogs/core/Abilities.h" #include "ogs/core/Die.h" #include "ogs/core/Skill.h" #include "ogs/core/details/Alignment.h" + #include "ogs/core/moves/Walk.h" + #include "ogs/core/moves/Fly.h" #include "ogs/Skills.h" #include "ogs/feats/Alertness.h" *************** *** 36,40 **** using ogs::core::Abilities; using ogs::core::Die; ! using ogs::core::Modifier; using ogs::core::Skill; using ogs::creatures::undeads::Wraith; --- 37,41 ---- using ogs::core::Abilities; using ogs::core::Die; ! using ogs::core::Moves; using ogs::core::Skill; using ogs::creatures::undeads::Wraith; *************** *** 60,63 **** --- 61,78 ---- /** + * Create a list of default movement rates for this type of creature. + * + * @return A list of default movement rates. + */ + Moves Wraith::createMoves () { + using ogs::core::moves::Walk; + using ogs::core::MovePtr; + Moves moves (1, MovePtr (new Walk (30))); + using ogs::core::moves::Fly; + moves.push_back (MovePtr (new Fly (60, Fly::GOOD))); + return (moves); + } + + /** * Create a set of abilities for this type of creature. * *************** *** 84,88 **** */ Wraith::Wraith (Die::Count hitDieCount): ! Undead (createHitDice (hitDieCount), createAbilities ()) { using ogs::skills::CommonSkills; --- 99,108 ---- */ Wraith::Wraith (Die::Count hitDieCount): ! Undead (createMoves (), ! createAbilities (), ! ogs::core::Size::MEDIUM, ! createHitDice (hitDieCount)) { ! // incorporeal touch +5 melee ! // 1d4 damage and 1d6 permanent constitution drain using ogs::skills::CommonSkills; Index: Wraith.h =================================================================== RCS file: /cvsroot/ogs/dist/c++/ogs/creatures/undeads/Wraith.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Wraith.h 15 Apr 2003 16:58:40 -0000 1.1 --- Wraith.h 2 May 2003 19:06:31 -0000 1.2 *************** *** 62,65 **** --- 62,66 ---- static Die createHitDice (Die::Count hitDieCount); + static ogs::core::Moves createMoves (); static ogs::core::Abilities createAbilities (); }; |