📄 gameobjectlocationstruct.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 + -