Added all figures so you can see what kind it was promoted from
[Shogi.git] / pjas.h
blob1818a016deca03b3568c445d922f8edf39e40fb4
1 #ifndef _pjas_
2 #define _pjas_
4 class Pjas{
5 public:
6 int typ;
7 int xpos,ypos;
8 bool promoted;
9 bool ispromotable;
10 bool isking;
11 int owner; // 0 or 1
12 bool outside; // if outside of game or on game table
13 Pjas(int typ=0); // vilken typ, se pjas.cpp
14 int picture(); // returnarar vilket bild index vi har
19 class Pjas{
20 public:
21 int xpos,ypos;
22 virtual void showMoves()=0; //show valid moves
23 virtual bool moveTo(int x,int y)=0; // move here, return true if possible
24 virtual void promote()=0; // promote the pjäs
25 bool promoted;
26 bool ispromotable;
27 bool isking;
28 int owner; // 0 or 1
29 bool outside; // if outside of game or on game table
32 class Bonde:public Pjas
34 Bonde();
35 void showMoves();
36 void moveTo(int x,int y);
37 void promote();
40 class Lans:public Pjas
42 Lans();
43 void showMoves();
44 void moveTo(int x,int y);
45 void promote();
48 class Springare:public Pjas
50 Springare();
51 void showMoves();
52 void moveTo(int x,int y);
53 void promote();
56 class Silver:public Pjas
58 Silver();
59 void showMoves();
60 void moveTo(int x,int y);
61 void promote();
64 class :public Pjas
66 Guld();
67 void showMoves();
68 void moveTo(int x,int y);
69 void promote();
72 class Kung:public Pjas
74 Kung();
75 void showMoves();
76 void moveTo(int x,int y);
77 void promote();
80 class Torn:public Pjas
82 Torn();
83 void showMoves();
84 void moveTo(int x,int y);
85 void promote();
88 class Lopare:public Pjas
90 Lopare();
91 void showMoves();
92 void moveTo(int x,int y);
93 void promote();
94 };*/
95 #endif