001 package com.croftsoft.apps.chat.request; 002 003 import com.croftsoft.core.math.geom.Point2DD; 004 import com.croftsoft.core.math.geom.PointXY; 005 import com.croftsoft.core.security.Authentication; 006 007 /********************************************************************* 008 * A request to move an avatar. 009 * 010 * @version 011 * 2003-06-20 012 * @since 013 * 2003-06-06 014 * @author 015 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 016 *********************************************************************/ 017 018 public final class MoveRequest 019 extends CoalesceableRequest 020 ////////////////////////////////////////////////////////////////////// 021 ////////////////////////////////////////////////////////////////////// 022 { 023 024 private static final long serialVersionUID = 0L; 025 026 // 027 028 private PointXY destination; 029 030 ////////////////////////////////////////////////////////////////////// 031 ////////////////////////////////////////////////////////////////////// 032 033 public MoveRequest ( 034 Authentication authentication, 035 PointXY destination ) 036 ////////////////////////////////////////////////////////////////////// 037 { 038 super ( authentication ); 039 040 if ( destination != null ) 041 { 042 destination = new Point2DD ( destination ); 043 } 044 045 this.destination = destination; 046 } 047 048 ////////////////////////////////////////////////////////////////////// 049 ////////////////////////////////////////////////////////////////////// 050 051 public PointXY getDestination ( ) { return destination; } 052 053 ////////////////////////////////////////////////////////////////////// 054 ////////////////////////////////////////////////////////////////////// 055 }