gameevent.java

来自「TetrisGame java.One of my assignments.Ho」· Java 代码 · 共 39 行

JAVA
39
字号
package TetrisBean;

import java.awt.*;

/**
 * The GameEvent class.
 * 
 * @author Scott Clee
 */
public class GameEvent extends Event
{
    public static final int START = 0;
    public static final int END   = 1;

    private int fType;

    /**
     * Create a GameEvent.
     * 
     * @param type   The type of event. Either START or END.
     * @param source The source of the Event.
     */
    public GameEvent(int type)
    {
	    super(null, 0, null);
        fType   = type;
    }

    /**
     * Returns the type of the event.
     * 
     * @return The type of the event.
     */
    public int getType()
    {
        return fType;
    }
}

⌨️ 快捷键说明

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