⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entity.java

📁 Java 3D API, 一套完整的3d引擎
💻 JAVA
字号:
import com.threed.jpct.*;

/**
 * An entity of the "game world", like the car, a bullet...
 */
public interface Entity {

   /**
    * Makes sure that the world knows this entity. Of course, a world can't
    * work with Entity but Object3D. Have a look at AbstractEntity to see
    * how this example deals with it.
    * @param world the world
    */
   void addToWorld(World world);

   /**
    * Moves the entity forward
    */
   void moveForward();

   /**
    * Moves the entity backwards
    */
   void moveBackward();

   /**
    * Gets the speed of the entity
    * @return the speed
    */
   float getSpeed();

   /**
    * Sets the speed of the entity
    * @param speed the speed
    */
   void setSpeed(float speed);
}

⌨️ 快捷键说明

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