?? snakeadapter.java
字號:
/**
* @(#)SnakeAdapter.java
* @The adapter between MBAC and SnakeSystem.
*
* @Link Scholes
* @version 1.00 2008/7/21
*/
package Adapter;
import System.*;
public class SnakeAdapter
{
private SnakeSystem system;
public SnakeAdapter()
{
system = new SnakeSystem();
}
public int getDirection()
{
return system.getDirection();
}
public int getLife()
{
return system.getLife();
}
public int getPosition()
{
return system.getPosition();
}
public int getLength()
{
return system.getLength();
}
public void addHead(int n)
{
system.addHead(n);
}
public int cutTail()
{
return system.cutTail();
}
public void increase()
{
system.increase();
}
public void decrease()
{
system.decrease();
}
public int[] clear()
{
return system.clear();
}
public void neos()
{
system.neos();
}
public void reborn()
{
system.reborn();
}
public void newStage(int a,int b)
{
system.newStage(a,b);
}
} //end class SnakeAdapter
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -