_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
SpellActionType Class Referenceabstract

#include <spells.h>

Inheritance diagram for SpellActionType:
Spell_AdjustVariable Spell_AdjustVital Spell_AreaAdjustVital Spell_AreaBombardment Spell_Capture Spell_Demolish Spell_LuaCallback Spell_Polymorph Spell_SpawnMissile Spell_SpawnPortal Spell_Summon Spell_Teleport

Public Member Functions

 SpellActionType (int mod=0)
 
virtual ~SpellActionType ()
 
virtual int Cast (CUnit &caster, const SpellType &spell, CUnit *&target, const Vec2i &goalPos)=0
 
virtual void Parse (lua_State *l, int startIndex, int endIndex)=0
 

Public Attributes

const int ModifyManaCaster
 

Detailed Description

Generic spell action virtual class. Spells are sub class of this one

Constructor & Destructor Documentation

◆ SpellActionType()

SpellActionType::SpellActionType ( int  mod = 0)
inline

◆ ~SpellActionType()

virtual SpellActionType::~SpellActionType ( )
inlinevirtual

Member Function Documentation

◆ Cast()

virtual int SpellActionType::Cast ( CUnit caster,
const SpellType spell,
CUnit *&  target,
const Vec2i goalPos 
)
pure virtual

◆ Parse()

virtual void SpellActionType::Parse ( lua_State *  l,
int  startIndex,
int  endIndex 
)
pure virtual

Member Data Documentation

◆ ModifyManaCaster

const int SpellActionType::ModifyManaCaster

The documentation for this class was generated from the following file:
(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.