Class LBoard
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----Board
|
+----LBoard
- class LBoard
- extends Board
LBoard
Leave the last
- Version:
- 1.0b1 05/01/98
-
button
-
-
buttonH
-
-
buttonW
-
-
horizBoard
- if you want the Board to be horizontal set this to true
-
logo
- var in which I store the image
-
lw
- this is the width of a picture divided + 5
-
myH
- heigth of the board
-
myW
- width of the board (in this case width of the picture I use)
-
selected
- selected number
-
tab
-
-
tabX
- in which I store x and y positions of images
-
tabY
-
-
LBoard()
- Constructror
-
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
-
select(int)
- show selected logos
tab
int tab[]
myW
int myW
- width of the board (in this case width of the picture I use)
myH
int myH
- heigth of the board
horizBoard
boolean horizBoard
- if you want the Board to be horizontal set this to true
lw
int lw
- this is the width of a picture divided + 5
logo
Image logo[]
- var in which I store the image
button
Image button
buttonW
int buttonW
buttonH
int buttonH
tabX
int tabX[]
- in which I store x and y positions of images
tabY
int tabY[]
selected
int selected
- selected number
LBoard
public LBoard()
- 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
getClickValue
public void getClickValue(int xC,
int yC)
- this method should be overwriten, this is from where you give
the value of the click to Game Panel
- Overrides:
- getClickValue in class Board
select
public void select(int i)
- show selected logos