Loading src/chessComponent/AdvisorChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/AdvisorChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class AdvisorChessComponent extends ChessComponent{ protected AdvisorChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "仕"; } else { name = "士"; } } } src/chessComponent/CannonChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/CannonChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class CannonChessComponent extends ChessComponent{ protected CannonChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "炮"; } else { name = "砲"; } } } src/chessComponent/ChariotChessComponent.java +2 −1 Changes for src/chessComponent/ChariotChessComponent.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ import java.awt.*; */ public class ChariotChessComponent extends ChessComponent { public ChariotChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { public ChariotChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "俥"; Loading src/chessComponent/ChessComponent.java +2 −1 Changes for src/chessComponent/ChessComponent.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ import java.awt.*; public class ChessComponent extends SquareComponent{ protected String name;// 棋子名字:例如 兵,卒,士等 protected ChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { protected ChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); } @Override Loading src/chessComponent/GeneralChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/GeneralChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class GeneralChessComponent extends ChessComponent { protected GeneralChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "帥"; } else { name = "將"; } } } Loading
src/chessComponent/AdvisorChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/AdvisorChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class AdvisorChessComponent extends ChessComponent{ protected AdvisorChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "仕"; } else { name = "士"; } } }
src/chessComponent/CannonChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/CannonChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class CannonChessComponent extends ChessComponent{ protected CannonChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "炮"; } else { name = "砲"; } } }
src/chessComponent/ChariotChessComponent.java +2 −1 Changes for src/chessComponent/ChariotChessComponent.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ import java.awt.*; */ public class ChariotChessComponent extends ChessComponent { public ChariotChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { public ChariotChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "俥"; Loading
src/chessComponent/ChessComponent.java +2 −1 Changes for src/chessComponent/ChessComponent.java: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -12,7 +12,8 @@ import java.awt.*; public class ChessComponent extends SquareComponent{ protected String name;// 棋子名字:例如 兵,卒,士等 protected ChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { protected ChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); } @Override Loading
src/chessComponent/GeneralChessComponent.java 0 → 100644 +19 −0 Changes for src/chessComponent/GeneralChessComponent.java: 19 added lines, 0 removed lines. Original line number Diff line number Diff line package chessComponent; import controller.ClickController; import model.ChessColor; import model.ChessboardPoint; import java.awt.*; public class GeneralChessComponent extends ChessComponent { protected GeneralChessComponent(ChessboardPoint chessboardPoint, Point location, ChessColor chessColor, ClickController clickController, int size) { super(chessboardPoint, location, chessColor, clickController, size); if (this.getChessColor() == ChessColor.RED) { name = "帥"; } else { name = "將"; } } }