$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

SpellType Class Reference

#include <spells.h>

List of all members.


Public Member Functions

bool IsCasterOnly () const
 Sound played if cast.
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).
int Slot
 Spell name shown by the engine.
TargetType Target
 Spell numeric identifier.
std::vector< SpellActionType * > Action
 Targetting information. See TargetType.
int Range
 More arguments for spell (damage, delay, additional sounds...).
int ManaCost
int RepeatCast
 Required mana for each cast.
int DependencyId
 If the spell will be cast again until out of targets.
ConditionInfoCondition
 Id of upgrade, -1 if no upgrade needed for cast the spell.
AutoCastInfoAutoCast
 Conditions to cast the spell. (generic (no test for each target)).
AutoCastInfoAICast
 AutoCast information for your own units.
SoundConfig SoundWhenCast
 AutoCast information for ai. More detalied.

Detailed Description

Base structure of a spell type.

Constructor & Destructor Documentation

SpellType::SpellType ( int  slot,
const std::string &  ident 
)

SpellType constructor.

SpellType::~SpellType (  ) 

SpellType destructor.


Member Function Documentation

bool SpellType::IsCasterOnly (  )  const [inline]

Sound played if cast.


Member Data Documentation

std::string SpellType::Ident

std::string SpellType::Name

Spell unique identifier (spell-holy-vision).

Spell name shown by the engine.

Spell numeric identifier.

Targetting information. See TargetType.

More arguments for spell (damage, delay, additional sounds...).

Required mana for each cast.

If the spell will be cast again until out of targets.

Id of upgrade, -1 if no upgrade needed for cast the spell.

Conditions to cast the spell. (generic (no test for each target)).

AutoCast information for your own units.

AutoCast information for ai. More detalied.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.