/*
 * This file is part of the L2J Mobius project.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.l2jmobius.gameserver.model.shuttle;

import java.util.ArrayList;
import java.util.List;

import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.StatSet;
import org.l2jmobius.gameserver.model.VehiclePathPoint;

/**
 * @author UnAfraid
 */
public class ShuttleDataHolder
{
	private final int _id;
	private final Location _loc;
	private final List<Integer> _doors = new ArrayList<>(2);
	private final List<ShuttleStop> _stops = new ArrayList<>(2);
	private final List<VehiclePathPoint[]> _routes = new ArrayList<>(2);
	
	public ShuttleDataHolder(StatSet set)
	{
		_id = set.getInt("id");
		_loc = new Location(set);
	}
	
	public int getId()
	{
		return _id;
	}
	
	public Location getLocation()
	{
		return _loc;
	}
	
	public void addDoor(int id)
	{
		_doors.add(id);
	}
	
	public List<Integer> getDoors()
	{
		return _doors;
	}
	
	public void addStop(ShuttleStop stop)
	{
		_stops.add(stop);
	}
	
	public List<ShuttleStop> getStops()
	{
		return _stops;
	}
	
	public void addRoute(VehiclePathPoint[] route)
	{
		_routes.add(route);
	}
	
	public List<VehiclePathPoint[]> getRoutes()
	{
		return _routes;
	}
}
