Location: PHPKode > projects > PhpBlock > A9.8/script/action/stopaction.class.php
<?php
class StopAction extends AbstractAction{
	function __construct() {
		parent::__construct(Constante::$ACTION_STOP_OBJECT);
	}

	public function action($parZoneActionArray) {
		$locManageAction = ManageAction::getInstance();
        $locTargetObjectId= $parZoneActionArray[1];
		if($locTargetObject=$this->getObjectOfPlayer($locTargetObjectId, $locManageAction->getPlayer()->playerId)) {
			global $gloObjectManager;
			$locResult = $locTargetObject->move($locTargetObject->zoneId, $locMessage);
			$locTextZone = Zone::staticGetTextZoneCoord($locTargetObject->zoneId);
			if($locResult) {
				$locManageAction->addPlayerInfo("Stop to $locTextZone $locMessage");
			} else {
				$locManageAction->addPlayerInfo("No move to $locTextZone, cause: $locMessage");
			}
		}
	}
}
?>
Return current item: PhpBlock