Class MBoard
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----Board
|
+----MBoard
- class MBoard
- extends Board
MBoard
Mancala's Board
If you need more information on how it works have look to
TBoard.java which is higly documented
- Version:
- 1.0b1 25/04/98
-
b06W
-
-
b13W
-
-
bbH
-
-
bbP
-
-
bD
-
-
bdW
-
-
bhH
-
-
billes
-
-
horizBoard
-
-
myH
-
-
myW
-
-
pict
-
-
pictName
-
-
rFM
-
-
rFont
-
-
tab
-
-
MBoard()
- Constructror
-
doBol(int, int, int, Graphics)
-
-
getClickValue(int, int)
- this method should be overwriten, this is from where you give
the value of the click to Game Panel
-
init(Gpanel)
- initialization of the Board
this method is called only once, at the start of the Game.
-
paintBoard(Graphics)
- This method must be overwriten by the Game Board, this where you
draw the board
tab
int tab[]
myW
int myW
myH
int myH
horizBoard
boolean horizBoard
b13W
int b13W
b06W
int b06W
bdW
int bdW
bhH
int bhH
bbH
int bbH
bbP
int bbP
bD
int bD
rFont
Font rFont
rFM
FontMetrics rFM
pictName
String pictName
pict
Image pict
billes
Image billes[]
MBoard
public MBoard()
- Constructror
init
public void init(Gpanel o)
- initialization of the Board
this method is called only once, at the start of the Game.
- Overrides:
- init in class Board
paintBoard
public void paintBoard(Graphics gr)
- This method must be overwriten by the Game Board, this where you
draw the board
- Overrides:
- paintBoard in class Board
doBol
public void doBol(int bol,
int x,
int y,
Graphics gr)
getClickValue
public void getClickValue(int x,
int y)
- this method should be overwriten, this is from where you give
the value of the click to Game Panel
- Overrides:
- getClickValue in class Board