package sfs3.extensions.examples.shooter.handlers;

import com.smartfoxserver.bitswarm.data.TransportType;
import com.smartfoxserver.entities.User;
import com.smartfoxserver.entities.data.ISFSObject;
import com.smartfoxserver.extensions.BaseClientRequestHandler;

import sfs3.extensions.examples.shooter.utils.RoomHelper;

//This request is sent when player shoots
public class ShotHandler extends BaseClientRequestHandler
{
	@Override
	public void handleClientRequest(User u, ISFSObject data, TransportType txType)
	{
		int enemyHit = data.getInt("target").intValue();
		RoomHelper.getWorld(this).processShot(u, enemyHit);
	}
}
