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

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::SpellType ( int  slot,
const std::string &  ident 
)

SpellType constructor.

◆ ~SpellType()

SpellType::~SpellType ( )

SpellType destructor.

Member Function Documentation

◆ IsCasterOnly()

bool SpellType::IsCasterOnly ( ) const
inline

Sound played if cast.

Member Data Documentation

◆ Action

std::vector<SpellActionType *> SpellType::Action

Targeting information. See TargetType.

◆ AICast

AutoCastInfo* SpellType::AICast

AutoCast information for your own units.

◆ AutoCast

AutoCastInfo* SpellType::AutoCast

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

◆ Condition

ConditionInfo* SpellType::Condition

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

◆ CoolDown

int SpellType::CoolDown

Resource costs of spell.

◆ Costs

int SpellType::Costs[MaxCosts]

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

◆ DependencyId

int SpellType::DependencyId

How much time spell needs to be cast again.

◆ ForceUseAnimation

bool SpellType::ForceUseAnimation

◆ Ident

std::string SpellType::Ident

◆ ManaCost

int SpellType::ManaCost

◆ Name

std::string SpellType::Name

Spell unique identifier (spell-holy-vision)

◆ Range

int SpellType::Range

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

◆ RepeatCast

int SpellType::RepeatCast

Required mana for each cast.

◆ Slot

int SpellType::Slot

Spell name shown by the engine.

◆ SoundWhenCast

SoundConfig SpellType::SoundWhenCast

AutoCast information for ai. More detalied.

◆ Target

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.