____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <spells.h>
Public Member Functions | |
| SpellType (int slot, const std::string &ident) | |
| ~SpellType () | |
Public Attributes | |
| std::string | Ident |
| Spell unique identifier (spell-holy-vision). | |
| std::string | Name |
| Spell name shown by the engine. | |
| int | Slot |
| Spell numeric identifier. | |
| TargetType | Target |
| Targetting information. See TargetType. | |
| std::vector< SpellActionType * > | Action |
| More arguments for spell (damage, delay, additional sounds...). | |
| int | Range |
| Max range of the target. | |
| int | ManaCost |
| Required mana for each cast. | |
| int | RepeatCast |
| If the spell will be cast again until out of targets. | |
| int | DependencyId |
| Id of upgrade, -1 if no upgrade needed for cast the spell. | |
| ConditionInfo * | Condition |
| Conditions to cast the spell. (generic (no test for each target)). | |
| AutoCastInfo * | AutoCast |
| AutoCast information for your own units. | |
| AutoCastInfo * | AICast |
| AutoCast information for ai. More detalied. | |
| SoundConfig | SoundWhenCast |
| Sound played if cast. | |
Definition at line 351 of file spells.h.
| SpellType::SpellType | ( | int | slot, | |
| const std::string & | ident | |||
| ) |
SpellType constructor.
Definition at line 1127 of file spells.cpp.
| SpellType::~SpellType | ( | ) |
| std::string SpellType::Ident |
Spell unique identifier (spell-holy-vision).
Definition at line 357 of file spells.h.
Referenced by CommandSpellCast(), SaveOrder(), and SpellCast().
| std::string SpellType::Name |
Spell name shown by the engine.
Definition at line 358 of file spells.h.
Referenced by CclDefineSpell(), and HandleActionSpellCast().
| int SpellType::Slot |
Spell numeric identifier.
Definition at line 359 of file spells.h.
Referenced by AddButton(), AutoCastSpell(), CclDefineUnitType(), CclUnit(), and CommandSpellCast().
Targetting information. See TargetType.
Definition at line 362 of file spells.h.
Referenced by CanCastSpell(), CclDefineSpell(), PassCondition(), SelectTargetUnitsOfAutoCast(), and SpellCast().
| std::vector<SpellActionType *> SpellType::Action |
More arguments for spell (damage, delay, additional sounds...).
Definition at line 363 of file spells.h.
Referenced by CclDefineSpell(), SpellCast(), and ~SpellType().
| int SpellType::Range |
Max range of the target.
Definition at line 365 of file spells.h.
Referenced by AreaAdjustVitals::Cast(), CclDefineSpell(), and CommandSpellCast().
Required mana for each cast.
Definition at line 367 of file spells.h.
Referenced by AutoCastSpell(), Summon::Cast(), Capture::Cast(), Polymorph::Cast(), AdjustVitals::Cast(), AreaAdjustVitals::Cast(), CclDefineSpell(), HandleActionSpellCast(), PassCondition(), and SpellCast().
If the spell will be cast again until out of targets.
Definition at line 368 of file spells.h.
Referenced by CclDefineSpell(), and SpellCast().
Conditions to cast the spell. (generic (no test for each target)).
Definition at line 371 of file spells.h.
Referenced by CanCastSpell(), CclDefineSpell(), SelectTargetUnitsOfAutoCast(), and ~SpellType().
AutoCast information for your own units.
Definition at line 374 of file spells.h.
Referenced by CclDefineSpell(), CclDefineUnitType(), SelectTargetUnitsOfAutoCast(), and ~SpellType().
AutoCast information for ai. More detalied.
Definition at line 375 of file spells.h.
Referenced by CclDefineSpell(), SelectTargetUnitsOfAutoCast(), and ~SpellType().
Sound played if cast.
Definition at line 378 of file spells.h.
Referenced by CclDefineSpell(), and SpellCast().
1.5.6