____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

Demolish Class Reference

#include <spells.h>

Inheritance diagram for Demolish:

SpellActionType

List of all members.

Public Member Functions

 Demolish ()
virtual int Cast (CUnit *caster, const SpellType *spell, CUnit *target, int x, int y)

Public Attributes

int Damage
 Damage for every unit in range.
int Range
 Range of the explosion.


Detailed Description

Definition at line 163 of file spells.h.


Constructor & Destructor Documentation

Demolish::Demolish (  )  [inline]

Definition at line 165 of file spells.h.


Member Function Documentation

int Demolish::Cast ( CUnit caster,
const SpellType spell,
CUnit target,
int  x,
int  y 
) [virtual]

Cast demolish

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

Implements SpellActionType.

Definition at line 91 of file spells.cpp.

References Damage, HitUnit(), CMap::Info, Map, MapDistanceToUnit(), CMapInfo::MapHeight, CMapInfo::MapWidth, CUnit::Orders, Range, CUnitCache::Select(), UnitActionDie, UnitCache, UnitMax, and UnitTypeFly.


Member Data Documentation

Damage for every unit in range.

Definition at line 169 of file spells.h.

Referenced by Cast(), and CclSpellAction().

Range of the explosion.

Definition at line 170 of file spells.h.

Referenced by Cast(), and CclSpellAction().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:24 2009 for Bos Wars by  doxygen 1.5.6