Clone of UAS2 @ https://github.com/drudgedance/uas2

Wand.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * This file is part of UAS2.
  3. *
  4. * UAS2 is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * UAS2 is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. * You should have received a copy of the GNU General Public License
  14. * along with UASv1; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef __WAND_H
  18. #define __WAND_H
  19. #include "Object.h"
  20. #define DAMAGE_MAGIC 0x2
  21. //Cubem0j0: don't need this struct...
  22. /*
  23. struct cWandInfo
  24. {
  25. DWORD m_dwDamageType;
  26. DWORD m_dwSkillUsed;
  27. int m_iLowerDamage;
  28. int m_iUpperDamage;
  29. int m_iAttackModifier;
  30. int m_iDefenseModifier;
  31. int m_iSpeed;
  32. cWandInfo( )
  33. : m_dwSkillUsed ( SKILL_WAR_MAGIC ),
  34. m_dwDamageType ( DAMAGE_MAGIC ),
  35. m_iSpeed ( 20 ),
  36. m_iLowerDamage ( 1 ),
  37. m_iUpperDamage ( 4 ),
  38. m_iAttackModifier ( 0 ),
  39. m_iDefenseModifier ( 0 )
  40. {
  41. }
  42. };
  43. *//*
  44. class cWand : public cAbiotic
  45. {
  46. public:
  47. cWand( DWORD dwGUID, cLocation& Loc, DWORD dwModel, float flScale, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwWeight, DWORD dwValue, BOOL fIsOwned = FALSE, DWORD dwContainer = 0 )
  48. {
  49. m_dwGUID = dwGUID;
  50. m_bInventorySequence= -1;
  51. m_strName = strName;
  52. m_strDescription = strDescription;
  53. m_dwModel = dwModel;
  54. m_wIcon = dwIcon;
  55. m_fIsOwned = FALSE;
  56. m_dwContainer = dwContainer;
  57. m_dwWeight = dwWeight;
  58. m_dwValue = dwValue;
  59. m_fEquippable = TRUE;
  60. m_fIsStackable = FALSE;
  61. m_fSelectable = TRUE;
  62. m_flScale = flScale;
  63. m_fEquipped = 0;
  64. m_wNumLogins = 0x3C;
  65. m_wPositionSequence = 0;
  66. m_wNumPortals = 0;
  67. CopyMemory( &m_Location, &Loc, sizeof( cLocation ) );
  68. }
  69. cWand( ) {}
  70. // Use the Abiotic createpacket( ) for now
  71. cMessage CreatePacket( );
  72. void Assess( cClient *pcAsseser );
  73. private:
  74. };
  75. */
  76. #endif // #ifndef __WEAPON_H