____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <spells.h>

Public Member Functions | |
| AreaBombardment () | |
| virtual int | Cast (CUnit *caster, const SpellType *spell, CUnit *target, int x, int y) |
Public Attributes | |
| int | Fields |
| The size of the affected square. | |
| int | Shards |
| Number of shards thrown. | |
| int | Damage |
| Damage for every shard. | |
| int | StartOffsetX |
| The offset of the missile start point to the hit location. | |
| int | StartOffsetY |
| The offset of the missile start point to the hit location. | |
| MissileType * | Missile |
| Missile fired on cast. | |
Definition at line 173 of file spells.h.
| int AreaBombardment::Cast | ( | CUnit * | caster, | |
| const SpellType * | spell, | |||
| CUnit * | target, | |||
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Cast area bombardment.
| 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 |
Implements SpellActionType.
Definition at line 240 of file spells.cpp.
References Damage, Fields, CMap::Info, MakeMissile(), Map, CMapInfo::MapHeight, CMapInfo::MapWidth, Missile, CUnit::RefsIncrease(), Shards, StartOffsetX, StartOffsetY, SyncRand(), TileSizeX, and TileSizeY.
The size of the affected square.
Definition at line 180 of file spells.h.
Referenced by Cast(), and CclSpellAction().
Number of shards thrown.
Definition at line 181 of file spells.h.
Referenced by Cast(), and CclSpellAction().
Damage for every shard.
Definition at line 182 of file spells.h.
Referenced by Cast(), and CclSpellAction().
The offset of the missile start point to the hit location.
Definition at line 183 of file spells.h.
Referenced by Cast(), and CclSpellAction().
The offset of the missile start point to the hit location.
Definition at line 184 of file spells.h.
Referenced by Cast(), and CclSpellAction().
Missile fired on cast.
Definition at line 185 of file spells.h.
Referenced by Cast(), and CclSpellAction().
1.5.6