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

Public Member Functions | List of all members
Spell_SpawnPortal Class Reference

#include <spell_spawnportal.h>

Inheritance diagram for Spell_SpawnPortal:
SpellActionType

Public Member Functions

 Spell_SpawnPortal ()
 
spell_spawnportal.cpp - The spell SpawnPortal.
virtual int Cast (CUnit &caster, const SpellType &spell, CUnit *&target, const Vec2i &goalPos)
 
virtual void Parse (lua_State *l, int startIndex, int endIndex)
 
- Public Member Functions inherited from SpellActionType
 SpellActionType (int mod=0)
 
virtual ~SpellActionType ()
 

Additional Inherited Members

- Public Attributes inherited from SpellActionType
const int ModifyManaCaster
 

Constructor & Destructor Documentation

◆ Spell_SpawnPortal()

Spell_SpawnPortal::Spell_SpawnPortal ( )
inline

Member Function Documentation

◆ Cast()

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

Cast circle of power.

Parameters
casterUnit that casts the spell
spellSpell-type pointer
targetTarget unit that spell is addressed to
goalPostilePos of target spot when/if target does not exist
Returns
=!0 if spell should be repeated, 0 if not

Implements SpellActionType.

◆ Parse()

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

Implements SpellActionType.


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.