001 package com.croftsoft.apps.mars.net.request; 002 003 import com.croftsoft.core.math.geom.Point2DD; 004 import com.croftsoft.core.math.geom.PointXY; 005 006 /********************************************************************* 007 * Request to fire tank. 008 * 009 * @version 010 * 2003-05-13 011 * @since 012 * 2003-05-13 013 * @author 014 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 015 *********************************************************************/ 016 017 public final class MoveRequest 018 extends AbstractRequest 019 ////////////////////////////////////////////////////////////////////// 020 ////////////////////////////////////////////////////////////////////// 021 { 022 023 private static final long serialVersionUID = 0L; 024 025 // 026 027 private final Point2DD destination; 028 029 ////////////////////////////////////////////////////////////////////// 030 ////////////////////////////////////////////////////////////////////// 031 032 public MoveRequest ( String playerName ) 033 ////////////////////////////////////////////////////////////////////// 034 { 035 super ( playerName ); 036 037 destination = new Point2DD ( ); 038 } 039 040 ////////////////////////////////////////////////////////////////////// 041 ////////////////////////////////////////////////////////////////////// 042 043 public PointXY getDestination ( ) { return destination; } 044 045 public void setDestination ( 046 double x, 047 double y ) 048 ////////////////////////////////////////////////////////////////////// 049 { 050 destination.x = x; 051 052 destination.y = y; 053 } 054 055 ////////////////////////////////////////////////////////////////////// 056 ////////////////////////////////////////////////////////////////////// 057 }