cubeaction.java

来自「wince 5.0上基于personal java写的的虚拟魔方」· Java 代码 · 共 40 行

JAVA
40
字号

/*
 * Java Virtual Cube
 * -----------------
 *
 * Copyright 1996, Song Li  
 * URL: http://www.cs.umbc.edu/~sli2
 *
 * 
 * You can use the code for any nonprofittable use. But remember to mention
 * the authors' names in your revised program. You are also encouraged to
 * improve the program or give your comments and bug reports. If there are
 * further questions, please contact me and I'll be glad to help. My E-Mail
 * address is: sli2@gl.umbc.edu.
 *
 */



class CubeAction {
    private int     Axis ;
    private int     Plane ;
    private boolean Dir ;
    
    CubeAction (int axis, int plane, boolean dir) {
        Axis  = axis ;
        Plane = plane ;
        Dir   = dir ;
    }
    
    
    int     GetAxis  ()  {return Axis ;}
    int     GetPlane ()  {return Plane ;}
    boolean GetDir   ()  {return Dir ;}
}




⌨️ 快捷键说明

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