Beispiel #1
0
 public Knight(Knight r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #2
0
 public Rook(Rook r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #3
0
 public Knight(PlayerSide playerSide)
 {
     this.playerSide = playerSide;
     pawnLocation    = new Rectangle(0, 0, PawnBitmapCollection.WIDTH, PawnBitmapCollection.HEIGHT);
     behaviour       = new KnightBehaviour();
 }
Beispiel #4
0
 public Advisor(Advisor r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #5
0
 public General(General r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #6
0
 public Soldier(Soldier r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #7
0
 public Cannon(Cannon r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }
Beispiel #8
0
 public Elephant(Elephant r)
 {
     this.playerSide   = r.GetPlayerSide();
     this.pawnLocation = r.GetRec();
     this.behaviour    = r.GetBehaviour();
 }