____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 | |
| Polymorph () | |
| virtual int | Cast (CUnit *caster, const SpellType *spell, CUnit *target, int x, int y) |
Public Attributes | |
| CUnitType * | NewForm |
| The new form. | |
| int | PlayerNeutral |
| Convert the unit to the neutral player. | |
Definition at line 220 of file spells.h.
| int Polymorph::Cast | ( | CUnit * | caster, | |
| const SpellType * | spell, | |||
| CUnit * | target, | |||
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Cast polymorph.
| 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 518 of file spells.cpp.
References CUnitType::Building, CVariable::Enable, CUnit::IsEnemy(), KILL_INDEX, MakeUnitAndPlace(), MANA_INDEX, SpellType::ManaCost, CVariable::Max, NewForm, CUnit::Place(), CUnit::Player, PlayerNeutral, PlayerNumNeutral, Players, CUnitType::Points, CUnit::Release(), CUnit::Remove(), CPlayer::Score, CUnitType::TileHeight, CUnitType::TileWidth, CPlayer::TotalKills, CPlayer::TotalRazings, CUnit::Type, UnitClearOrders(), UnitLost(), UnitTypeCanBeAt(), CVariable::Value, CUnit::Variable, CUnit::X, and CUnit::Y.
Convert the unit to the neutral player.
Definition at line 227 of file spells.h.
Referenced by Cast(), and CclSpellAction().
1.5.6