____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

AdjustVitals Class Reference

#include <spells.h>

Inheritance diagram for AdjustVitals:

SpellActionType

List of all members.

Public Member Functions

 AdjustVitals ()
virtual int Cast (CUnit *caster, const SpellType *spell, CUnit *target, int x, int y)

Public Attributes

int HP
 Target HP gain.(can be negative).
int Mana
int MaxMultiCast


Detailed Description

Definition at line 207 of file spells.h.


Constructor & Destructor Documentation

AdjustVitals::AdjustVitals (  )  [inline]

Definition at line 209 of file spells.h.


Member Function Documentation

int AdjustVitals::Cast ( CUnit caster,
const SpellType spell,
CUnit target,
int  x,
int  y 
) [virtual]

Cast healing. (or exorcism)

Parameters:
caster Unit that casts the spell
spell Spell-type pointer
target Target unit that spell is addressed to
x X coord of target spot when/if target does not exist
y Y coord of target spot when/if target does not exist
Returns:
=!0 if spell should be repeated, 0 if not

Implements SpellActionType.

Definition at line 436 of file spells.cpp.

References Assert, HitUnit(), HP, HP_INDEX, Mana, MANA_INDEX, SpellType::ManaCost, CVariable::Max, MaxMultiCast, CUnit::Stats, CVariable::Value, CUnit::Variable, and CUnitStats::Variables.


Member Data Documentation

Target HP gain.(can be negative).

Definition at line 213 of file spells.h.

Referenced by Cast(), and CclSpellAction().

Target Mana gain.(can be negative) This spell is designed to be used wit very small amounts. The spell can scale up to MaxMultiCast times. Use 0 for infinite.

Definition at line 214 of file spells.h.

Referenced by Cast(), and CclSpellAction().

Definition at line 217 of file spells.h.

Referenced by Cast(), and CclSpellAction().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:22 2009 for Bos Wars by  doxygen 1.5.6