_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
SpellType Class Reference

#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...
 
ConditionInfoCondition
 Id of upgrade, -1 if no upgrade needed for cast the spell. More...
 
AutoCastInfoAutoCast
 Conditions to cast the spell. (generic (no test for each target)) More...
 
AutoCastInfoAICast
 AutoCast information for your own units. More...
 
SoundConfig SoundWhenCast
 AutoCast information for ai. More detalied. More...
 
bool ForceUseAnimation
 

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::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.


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