moverequest.java

来自「Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的」· Java 代码 · 共 56 行

JAVA
56
字号
     package com.croftsoft.apps.chat.request;     import com.croftsoft.core.math.geom.Point2DD;     import com.croftsoft.core.math.geom.PointXY;     import com.croftsoft.core.security.Authentication;     /*********************************************************************     * A request to move an avatar.     *     * @version     *   2003-06-20     * @since     *   2003-06-06     * @author     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>     *********************************************************************/     public final class  MoveRequest       extends CoalesceableRequest     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     {     private static final long  serialVersionUID = 0L;     //     private PointXY  destination;     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     public  MoveRequest (       Authentication  authentication,       PointXY         destination )     //////////////////////////////////////////////////////////////////////     {       super ( authentication );       if ( destination != null )       {         destination = new Point2DD ( destination );       }       this.destination = destination;     }     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     public PointXY  getDestination ( ) { return destination; }     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?