📄 maps.java~1~
字号:
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 Maps {
private MapPage Head = null;//point the first map
private MapPage Tail = null;//point the last map
MapPage mpp;
private long Length = 0;//record the page of the maps
int empressNumber;
public Maps()
{
}
public Maps(int empressNumber)
{
this.empressNumber = empressNumber;
}
public long getLength()
{
return Length;
}
public MapPage getHead()
{
return Head;
}
public MapPage getTail()
{
return Tail;
}
public void record(MapPage mp)
{
mpp = new MapPage(empressNumber);
mpp.copy(mp);
if(Length == 0)//if it is the first map
{
this.Head = mpp;
this.Tail = mpp;
}
else
{
this.Tail.setNext(mpp);
this.Tail = mpp;
}
this.Length++;
}
public void showRecords()
{
MapPage current;
current = Head;
int j = 1;
while(current != null)
{
for(int i = 0; i < empressNumber; i++)
{
System.out.print("[" + current.mapPage[0][i] + "/" + current.mapPage[1][i] + "]");
}
System.out.println("***"+ j);
current = current.getNext();
j++;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -