Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/action/spell/dungeonabstractspell.class.php
<?php
include_once $PATH_TO_CODE."/modules/dungeon/action/abstractaction.class.php";

abstract class DungeonAbstractSpellAction extends DungeonAbstractAction {
	function __construct($parActionType, $parCost, $parCostIsCash2=true) {
		parent::__construct($parActionType, $parCost, true);
	}
	public function action($parZoneActionArray) {
		if($this->verifyPlayerEnoughCash($this->cost)) {
			$locManageAction = ManageAction::getInstance();
			$locPlayer = $locManageAction->getPlayer();
			if($this->getZoneAndBlock($parZoneActionArray, $locZone, $locBlock)) {
				if($this->doAction($parZoneActionArray, $locZone, $locBlock)) {
					$this->payBill();
				}
			}
		}
	}
	protected abstract function doAction($parZoneActionArray, $locZone, $locBlock);
}
?>
Return current item: PhpBlock