📄 mappage.java
字号:
package empress;
/**
* <p>Title:Empresses </p>
*
* <p>Description:Empresses Show Software </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company:Bluebell </p>
*
* @authorJamy not attributable
* @version 1.0
*/
public class MapPage {
public int mapPage[][];
public MapPage next;
public MapPage prev;
int empressNumber;
public MapPage()
{
mapPage = new int[2][empressNumber];
this.next = null;
}
public void setMapPage(int x,int y)
{
this.mapPage[1][x] = y;
}
public void setNext(MapPage mp) //all these methods are to get the private data
{
this.next = mp;
}
public MapPage getNext()
{
return this.next;
}
public MapPage getPrev()
{
return this.prev;
}
public MapPage(int empressNumber)
{
mapPage = new int[2][empressNumber];
for(int i = 0; i < empressNumber; i++)
{
mapPage[0][i] = i;
mapPage[1][i] = -1; //initionalize the map that would be used right now
}
this.next = null;
this.empressNumber = empressNumber;//to deliver the number the class MapPage
}
public void copy(MapPage mp)
{
for(int i = 0; i < empressNumber; i++)
{
this.mapPage[0][i] = mp.mapPage[0][i];//to copy the info from the current map
this.mapPage[1][i] = mp.mapPage[1][i];
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -