tankconsole.java

来自「CroftSoft Code Library是一个开源的可移植的纯Java游戏库」· Java 代码 · 共 57 行

JAVA
57
字号
     package com.croftsoft.apps.mars.ai;     import java.awt.Shape;
     import com.croftsoft.core.ai.astar.SpaceTester;     import com.croftsoft.core.math.geom.PointXY;     import com.croftsoft.apps.mars.model.TankAccessor;
     /*********************************************************************
     * The tank console.
     *
     * @version
     *   2003-04-29     * @since
     *   2003-03-29
     * @author
     *   <a href="http://www.croftsoft.com/">David Wallace Croft</a>
     *********************************************************************/

     public interface  TankConsole       extends TankAccessor, SpaceTester     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////
     {     public int     getAmmo              ( );     public double  getBodyHeading       ( );     public double  getBodyRotationSpeed ( );     public Shape   getShape             ( );     public double  getTankSpeed         ( );     public double  getTurretHeading     ( );     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     public PointXY  getClosestAmmoDumpCenter  ( );     public PointXY  getClosestEnemyTankCenter ( );     //     public void  fire ( );     public void  go ( PointXY  destination );     public void  rotateTurret ( PointXY  targetPointXY );     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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