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

SpellActionType Class Reference

#include <spells.h>

Inheritance diagram for SpellActionType:

Spell_AdjustVariable Spell_AdjustVital Spell_AreaAdjustVital Spell_AreaBombardment Spell_Capture Spell_Demolish Spell_Polymorph Spell_SpawnMissile Spell_SpawnPortal Spell_Summon

List of all members.


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 ( int  mod = 0  )  [inline]

virtual SpellActionType::~SpellActionType (  )  [inline, virtual]


Member Function Documentation

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

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


Member Data Documentation


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.