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

Variable Index

 o button
 o buttonH
 o buttonW
 o horizBoard
if you want the Board to be horizontal set this to true
 o logo
var in which I store the image
 o lw
this is the width of a picture divided + 5
 o myH
heigth of the board
 o myW
width of the board (in this case width of the picture I use)
 o selected
selected number
 o tab
 o tabX
in which I store x and y positions of images
 o tabY

Constructor Index

 o LBoard()
Constructror

Method Index

 o getClickValue(int, int)
this method should be overwriten, this is from where you give the value of the click to Game Panel
 o init(Gpanel)
initialization of the Board this method is called only once, at the start of the Game.
 o paintBoard(Graphics)
This method must be overwriten by the Game Board, this where you draw the board
 o select(int)
show selected logos

Variables

 o tab
 int tab[]
 o myW
 int myW
width of the board (in this case width of the picture I use)

 o myH
 int myH
heigth of the board

 o horizBoard
 boolean horizBoard
if you want the Board to be horizontal set this to true

 o lw
 int lw
this is the width of a picture divided + 5

 o logo
 Image logo[]
var in which I store the image

 o button
 Image button
 o buttonW
 int buttonW
 o buttonH
 int buttonH
 o tabX
 int tabX[]
in which I store x and y positions of images

 o tabY
 int tabY[]
 o selected
 int selected
selected number

Constructors

 o LBoard
 public LBoard()
Constructror

Methods

 o 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
 o 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
 o 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
 o select
 public void select(int i)
show selected logos