public JsonResult GetTargetZone()
{
Guid? gameId = this.Session[MagicStrings.SessionGameId] as Guid?;
string email = this.Session[MagicStrings.SessionPlayerEmail].ToString();
TargetZone targetZone = MvcApplication.GameHost.GetOpponentTargetZone(gameId.Value, email);
double blastRadius = GameHost.ShotBlastRadius;
var model = new GetTargetZoneVModel()
{
Latitude = targetZone.Center.Latitude,
Longitude = targetZone.Center.Longitude,
Radius = ConvertGeoDistanceToMeters(targetZone.Center, targetZone.Radius),
BlastRadius = ConvertGeoDistanceToMeters(targetZone.Center, blastRadius)
};
return this.Json(model, JsonRequestBehavior.AllowGet);
}