src/Neuron/GameServer/Map/MapObject.php
public function getEndLocation ()
	{
		$lastLocation = $this->getLocation ();
		$lastDate = NOW;

		foreach ($this->movements as $v)
		{
			if ($v->getEndTime () > $lastDate)
			{
				$lastDate = $v->getEndTime ();
				$lastLocation = $v->getEndLocation ();
			}
		}

		return $lastLocation;
	}
public function getEndLocation ()
	{
		$lastLocation = $this->getLocation ();
		$lastDate = NOW;

		foreach ($this->movements as $v)
		{
			if ($v->getEndTime () > $lastDate)
			{
				$lastDate = $v->getEndTime ();
				$lastLocation = $v->getEndLocation ();
			}
		}

		return $lastLocation;
	}
public function getEndLocation ( ) { $ lastLocation = $ this -> getLocation ( ) ; $ lastDate = NOW ; foreach ( $ this -> movements as $ v ) { if ( $ v -> getEndTime ( ) > $ lastDate ) { $ lastDate = $ v -> getEndTime ( ) ; $ lastLocation = $ v -> getEndLocation ( ) ; } } return $ lastLocation ; }
Goes true all paths and checks the final location
Goes true all paths and checks the final location