$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <spells.h>
Public Member Functions | |
AdjustVitals () | |
spells.cpp - The spell cast action. | |
virtual int | Cast (CUnit &caster, const SpellType *spell, CUnit *target, int x, int y) |
Public Attributes | |
int | HP |
int | Mana |
Target HP gain.(can be negative). | |
int | MaxMultiCast |
AdjustVitals::AdjustVitals | ( | ) | [inline] |
int AdjustVitals::Cast | ( | CUnit & | caster, | |
const SpellType * | spell, | |||
CUnit * | target, | |||
int | x, | |||
int | y | |||
) | [virtual] |
Cast healing. (or exorcism)
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 |
Implements SpellActionType.
int AdjustVitals::HP |
Target HP gain.(can be negative).
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.