* @return Avatar
*/
public Avatar getAvatar(){
- return avatar;
+ return this.avatar;
}
/**
* @return 役割
*/
public GameRole getRole(){
- return role;
+ return this.role;
}
/**
* @return 運命
*/
public Destiny getDestiny(){
- return destiny;
+ return this.destiny;
}
/**
* @return プロローグを0とする命日。死んでなければ負。
*/
public int getObitDay(){
- return obitDay;
+ return this.obitDay;
}
/**
* @return プレイヤーID
*/
public String getIdName(){
- return idName;
+ return this.idName;
}
/**
* @return URL文字列
*/
public String getUrlText(){
- return urlText;
+ return this.urlText;
}
/**
* @return エントリーNo.
*/
public int getEntryNo(){
- return entryNo;
+ return this.entryNo;
}
/**
*/
public class Village implements Comparable<Village> {
- /**
- * 村同士を比較するためのComparator。
- */
- private static class VillageComparator implements Comparator<Village> {
-
- /**
- * コンストラクタ。
- */
- public VillageComparator(){
- super();
- return;
- }
-
- /**
- * {@inheritDoc}
- * @param v1 {@inheritDoc}
- * @param v2 {@inheritDoc}
- * @return {@inheritDoc}
- */
- @Override
- public int compare(Village v1, Village v2){
- int v1Num;
- if(v1 == null) v1Num = Integer.MIN_VALUE;
- else v1Num = v1.getVillageIDNum();
-
- int v2Num;
- if(v2 == null) v2Num = Integer.MIN_VALUE;
- else v2Num = v2.getVillageIDNum();
-
- return v1Num - v2Num;
- }
-
- }
-
private static final int GID_MIN = 3;
private static final Comparator<Village> VILLAGE_COMPARATOR =
return getVillageFullName();
}
+
/**
* Period一覧取得用ハンドラ。
*/
}
+
+ /**
+ * 村同士を比較するためのComparator。
+ */
+ private static class VillageComparator implements Comparator<Village> {
+
+ /**
+ * コンストラクタ。
+ */
+ public VillageComparator(){
+ super();
+ return;
+ }
+
+ /**
+ * {@inheritDoc}
+ * @param v1 {@inheritDoc}
+ * @param v2 {@inheritDoc}
+ * @return {@inheritDoc}
+ */
+ @Override
+ public int compare(Village v1, Village v2){
+ int v1Num;
+ if(v1 == null) v1Num = Integer.MIN_VALUE;
+ else v1Num = v1.getVillageIDNum();
+
+ int v2Num;
+ if(v2 == null) v2Num = Integer.MIN_VALUE;
+ else v2Num = v2.getVillageIDNum();
+
+ return v1Num - v2Num;
+ }
+
+ }
+
}
this.dialog.paint(g);
int anchorX = xPos + OFFSET_ANCHOR;
- int anchorY = yPos + this.dialogOrigin.y + baloonHeight;
+ int anchorY = yPos + this.dialogOrigin.y + this.baloonHeight;
for(AnchorDraw anchorDraw : this.anchorTalks){
anchorDraw.setPos(anchorX, anchorY);
EventQueue.invokeLater(new Runnable(){
@Override
public void run(){
- templateArea.scrollRectToVisible(new Rectangle());
+ JTextArea area = VillageDigest.this.templateArea;
+ area.scrollRectToVisible(new Rectangle());
}
});
// TODO あらかじめテキストを全選択させておきたい
this.nextPlayer.setEnabled(true);
}
- Image image = village.getAvatarFaceImage(avatar);
+ Image image = this.village.getAvatarFaceImage(avatar);
this.faceIcon.setImage(image);
this.faceLabel.setIcon(null); // なぜかこれが必要
this.faceLabel.setIcon(this.faceIcon);