_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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 | |
| bool | IsCasterOnly () const |
| Sound played if cast. More... | |
spells.cpp - The spell cast action. | |
| SpellType (int slot, const std::string &ident) | |
| ~SpellType () | |
Public Attributes | |
| std::string | Ident |
| std::string | Name |
| Spell unique identifier (spell-holy-vision) More... | |
| int | Slot |
| Spell name shown by the engine. More... | |
| TargetType | Target |
| Spell numeric identifier. More... | |
| std::vector< SpellActionType * > | Action |
| Targeting information. See TargetType. More... | |
| int | Range |
| More arguments for spell (damage, delay, additional sounds...). More... | |
| int | ManaCost |
| int | RepeatCast |
| Required mana for each cast. More... | |
| int | Costs [MaxCosts] |
| If the spell will be cast again until out of targets. More... | |
| int | CoolDown |
| Resource costs of spell. More... | |
| int | DependencyId |
| How much time spell needs to be cast again. More... | |
| ConditionInfo * | Condition |
| Id of upgrade, -1 if no upgrade needed for cast the spell. More... | |
| AutoCastInfo * | AutoCast |
| Conditions to cast the spell. (generic (no test for each target)) More... | |
| AutoCastInfo * | AICast |
| AutoCast information for your own units. More... | |
| SoundConfig | SoundWhenCast |
| AutoCast information for ai. More detalied. More... | |
| bool | ForceUseAnimation |
Base structure of a spell type.
| SpellType::SpellType | ( | int | slot, |
| const std::string & | ident | ||
| ) |
SpellType constructor.
| SpellType::~SpellType | ( | ) |
SpellType destructor.
|
inline |
Sound played if cast.
| std::vector<SpellActionType *> SpellType::Action |
Targeting information. See TargetType.
| AutoCastInfo* SpellType::AICast |
AutoCast information for your own units.
| AutoCastInfo* SpellType::AutoCast |
Conditions to cast the spell. (generic (no test for each target))
| ConditionInfo* SpellType::Condition |
Id of upgrade, -1 if no upgrade needed for cast the spell.
| int SpellType::CoolDown |
Resource costs of spell.
| int SpellType::Costs[MaxCosts] |
If the spell will be cast again until out of targets.
| int SpellType::DependencyId |
How much time spell needs to be cast again.
| bool SpellType::ForceUseAnimation |
| std::string SpellType::Ident |
| int SpellType::ManaCost |
| std::string SpellType::Name |
Spell unique identifier (spell-holy-vision)
| int SpellType::Range |
More arguments for spell (damage, delay, additional sounds...).
| int SpellType::RepeatCast |
Required mana for each cast.
| int SpellType::Slot |
Spell name shown by the engine.
| SoundConfig SpellType::SoundWhenCast |
AutoCast information for ai. More detalied.
| TargetType SpellType::Target |
Spell numeric identifier.
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.