Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/action/recruit/recruitknight.class.php
<?php
include_once $PATH_TO_CODE."/modules/dungeon/action/abstractrecruitaction.class.php";

class RecruitKnightAction extends DungeonAbstractRecruitAction {
	function __construct() {
		parent::__construct(
		DungeonConstante::$ACTION_BUILD_KNIGHT,
		DungeonConstante::$ACTION_BUY_KNIGHT_COST,
		true);
	}

	public function create($locZone, $locPlayer) {
		$locManageAction = ManageAction::getInstance();
		$locResult = Knight::create($locZone, $locPlayer->playerId);
		$locManageAction->addPlayerInfo("knight recruited");
        return $locResult;
	}
}
?>
Return current item: PhpBlock