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

📄 gameobjectlocationstruct.java

📁 用java开发的一个实施策略游戏源码 值得学习一下
💻 JAVA
字号:
package netwar.utils;


/** A utility class for the map maker that contains many of the attibutes of a single GameObject. Also serializaable, this structure often contain immovable objects like trees.
 * @author Kyle Kakligian
 */
public class GameObjectLocationStruct implements java.io.Serializable {
    
    /** x locatoin of the unit
     */
    public int x;
    
    /** x locatoin of the unit
     */
    public int y;
    
    /** index of the GameObject from the list in a map file.
     */    
    public int   unitIndex;
    /** normal constructor
     * @param X x locatoin of the unit
     * @param Y y locatoin of the unit
     * @param UnitIndex index of the GameObject from the list in a map file.
     */    
    public GameObjectLocationStruct(int X, int Y, int UnitIndex) {
        x = X; y = Y;
        unitIndex = UnitIndex;
    }
}

⌨️ 快捷键说明

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