$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

Spell_Demolish Class Reference

#include <spell_demolish.h>

Inheritance diagram for Spell_Demolish:

SpellActionType

List of all members.


Public Member Functions

 Spell_Demolish ()
spell_demolish.cpp - The spell demolish.
virtual int Cast (CUnit &caster, const SpellType &spell, CUnit *target, const Vec2i &goalPos)
virtual void Parse (lua_State *l, int startIndex, int endIndex)

Constructor & Destructor Documentation

Spell_Demolish::Spell_Demolish (  )  [inline]


Member Function Documentation

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

Cast demolish

Parameters:
caster Unit that casts the spell
spell Spell-type pointer
target Target unit that spell is addressed to
goalPos tilePos of target spot when/if target does not exist
Returns:
=!0 if spell should be repeated, 0 if not

Implements SpellActionType.

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