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

AreaBombardment Class Reference

#include <spells.h>

Inheritance diagram for AreaBombardment:

SpellActionType

List of all members.


Public Member Functions

 AreaBombardment ()
spells.cpp - The spell cast action.
virtual int Cast (CUnit &caster, const SpellType *spell, CUnit *target, int x, int y)

Public Attributes

int Fields
int Shards
 The size of the affected square.
int Damage
 Number of shards thrown.
int StartOffsetX
 Damage for every shard.
int StartOffsetY
 The offset of the missile start point to the hit location.
MissileTypeMissile
 The offset of the missile start point to the hit location.

Constructor & Destructor Documentation

AreaBombardment::AreaBombardment (  )  [inline]


Member Function Documentation

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

Cast area bombardment.

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.


Member Data Documentation

The size of the affected square.

Number of shards thrown.

Damage for every shard.

The offset of the missile start point to the hit location.

The offset of the missile start point to the hit location.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.