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

class RecruitSkeletonAction extends DungeonAbstractRecruitAction {
    function __construct() {
        parent::__construct(DungeonConstante::$ACTION_BUILD_SKELETON, DungeonConstante::$ACTION_BUY_SKELETON_COST, true);
    }

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