All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

Abox(Frame, String, boolean). Constructor for class Abox
action(Event, Object). Method in class Abox
action(Event, Object). Method in class Ebox
action(Event, Object). Method in class Gpanel
action(Event, Object). Method in class Login
action(Event, Object). Method in class Pbox
action(Event, Object). Method in class Sbox
action(Event, Object). Method in class Wbox
Admin(Socket). Constructor for class Admin
Construct a new Admin console and launch the Thread
alive. Variable in class Human
alive. Variable in class Wplayer
ask. Variable in class Human
asked(). Method in class Human
asked(). Method in class Player
asker. Variable in class Human
asking(). Method in class Human
asking(). Method in class Player
avoidCapture(). Method in class Mbot
Calcul le bol que l'adversaire jouerait pour capturer une de nos bille

B

b06W. Variable in class MBoard
b13W. Variable in class MBoard
badTab. Variable in class Mbot
bbH. Variable in class MBoard
bbP. Variable in class MBoard
bD. Variable in class MBoard
bdM(String). Static method in class ServM
Broadcast message to persons that aren't playing
bdS(String). Static method in class ServM
Broadcast message to every clients
bdU(String). Static method in class ServM
Brodcast an update message
bdW. Variable in class MBoard
bestAC(int). Method in class Mbot
calcul le meilleur coup a jouer pour eviter une capture
bhH. Variable in class MBoard
billes. Variable in class MBoard
Board(). Constructor for class Board
constructror
bot. Variable in class Player
bots. Static variable in class ServM
buf. Variable in class Human
buf. Variable in class Wplayer
button. Variable in class LBoard
buttonH. Variable in class LBoard
buttonW. Variable in class LBoard

C

cancel. Variable in class Abox
cancel. Variable in class Wbox
capture(int[]). Method in class Mbot
Retourne le bol qui lui permet de capturer un maximum de billes en commencant par la droite
captureOrNot(). Method in class Mbot
Choisit entre capturer rejouer et avoidCapture en fonction du gain/perte
chance(). Method in class Lbot
chance(). Method in class Tbot
chat. Variable in class Gpanel
checkBadTab(int). Method in class Mbot
Check Bad Tabs (reflex conditiones) Pour certaines tables bien determinees il connait deja le meilleur coup
clean(). Method in class Human
clean(). Method in class Player
clean(). Method in class Wplayer
cleanUI(). Method in class Wpanel
comment. Variable in class Pbox
comment. Variable in class Sbox
computers. Variable in class jSave
connected. Variable in class Login
createBots(). Static method in class ServM
Update the bots in the userlist
creating. Variable in class Admin
crossd. Variable in class TBoard
this is the width of a cross picture divided by 2

D

data. Variable in class Admin
dead. Variable in class Gpanel
defFont. Variable in class Gpanel
delAsk(String). Method in class Human
delAsk(String). Method in class Player
delAsker(String). Method in class Human
delAsker(String). Method in class Player
dFM. Variable in class Gpanel
die(). Method in class Admin
die(). Method in class Game
die
die(). Method in class Gpanel
die(). Method in class Human
Kill the user: send the quit string to the server, remove the user from ServM user list and close the socket.
die(). Method in class Pbox
die(). Method in class Player
die(). Method in class Sbox
die(). Static method in class ServM
die(). Method in class Wplayer
doBol(int, int, int, Graphics). Method in class MBoard

E

Ebox(Frame, String, boolean). Constructor for class Ebox
emptyBiggest(). Method in class Mbot
vide le plus gros des bol qui lui permet de jouer dans le kalaha
emptyRightest(). Method in class Mbot
vide le bol le plus a droite
entry. Variable in class Abox
entry. Variable in class Login
entry. Variable in class Pbox
entry. Variable in class Sbox
entry2. Variable in class Login

F

fb(String). Method in class Mstream
fcomm. Variable in class Login
finDePartie(). Method in class Mbot
S'il ne reste plus que 2 bols non vides chez l'adversaire, l'ordinateur va essayer de ne pas lui en remplir afin de le faire perdre ou que la somme des pions de l'adversaire est < 4
fnick. Variable in class Login

G

g. Variable in class Game
g. Variable in class Gpanel
game. Variable in class Abox
game. Variable in class Human
game. Variable in class Pbox
Game(String, String, String). Constructor for class Game
Construct a new game and launch the Thread
gameBoard. Variable in class Gpanel
gamel. Variable in class Wpanel
games. Variable in class jSave
games. Static variable in class ServM
gaming. Variable in class Game
getAddy(). Method in class Human
getAddy(). Method in class Player
getAddy(). Method in class Wplayer
getAsk(). Method in class Human
getAsk(). Method in class Player
getAsker(). Method in class Human
getAsker(). Method in class Player
getClass(String, String). Method in class Mstream
getClickValue(int, int). Method in class Board
this method should be overwriten, this is from where you give the value of the click to Game Panel
getClickValue(int, int). Method in class LBoard
this method should be overwriten, this is from where you give the value of the click to Game Panel
getClickValue(int, int). Method in class MBoard
this method should be overwriten, this is from where you give the value of the click to Game Panel
getClickValue(int, int). Method in class TBoard
This method is called by mouseDown() each time a bol is clicked.
getGame(). Method in class Human
getGame(). Method in class Player
getImage(String). Method in class Board
This method is in charge of downloading images for you.
getInfo(). Method in class Human
getInfo(). Method in class Player
getInfo(). Method in class Wplayer
getlastBol(int, int[]). Method in class Mbot
retourne le dernier bol ou arrive la bille
getName(). Method in class Hplayer
getNick(). Method in class Human
getNick(). Method in class Player
getNick(). Method in class Wplayer
getPlay(). Method in class Human
getPlay(). Method in class Player
getPlay(). Method in class Wplayer
getScore(). Method in class Human
getScore(). Method in class Player
getScore(). Method in class Wplayer
getSocket(). Method in class Wplayer
getTab(String). Method in class Rules
return the table, depending on the player's name
getTabS(String). Method in class Rules
getTurn(). Method in class Hplayer
gli(). Method in class Mstream
gli(String). Method in class Wpanel
GameList creator
glist. Variable in class Wpanel
go. Variable in class Login
Gpanel(Wpanel, Wplayer, String, String). Constructor for class Gpanel

H

h. Variable in class Human
h. Variable in class Wplayer
handleEvent(Event). Method in class Gpanel
handleEvent(Event). Method in class Wpanel
hasard(). Method in class Mbot
choisit un bol au hasard
header. Variable in class Gpanel
header. Variable in class Login
header. Variable in class Wpanel
help. Variable in class Login
help2. Variable in class Login
hisTurn(). Method in class Human
hisTurn(). Method in class Player
horizBoard. Variable in class Board
horizBoard. Variable in class Gpanel
horizBoard. Variable in class LBoard
if you want the Board to be horizontal set this to true
horizBoard. Variable in class MBoard
horizBoard. Variable in class TBoard
if you want the Board to be horizontal set this to true
host. Variable in class Login
howManyR(int[]). Method in class Mbot
Calcul le nombre de replay possible pour un tableau
Hplayer(). Constructor for class Hplayer
Hsocket. Variable in class SocketHub
Human(String, Socket, String). Constructor for class Human
Construct a new Human and launch the Thread

I

IH. Variable in class SocketHub
info. Variable in class Lbot
info. Variable in class Mbot
info. Variable in class Player
info. Variable in class Tbot
info. Variable in class Wplayer
infos. Variable in class Login
infos. Variable in class Wpanel
init(). Method in class Hplayer
init(). Method in class jGDK
init(). Method in class Login
init(Gpanel). Method in class Board
This method must be overwriten by the Game Board, from there you gives vars to the super class.
init(Gpanel). Method in class LBoard
initialization of the Board this method is called only once, at the start of the Game.
init(Gpanel). Method in class MBoard
initialization of the Board this method is called only once, at the start of the Game.
init(Gpanel). Method in class TBoard
initialization of the Board this method is called only once, at the start of the Game.
initDone. Variable in class Board
IO. Variable in class Mstream
iPlay. Variable in class Player
isAlive(). Method in class Human
isAlive(). Method in class Player
isAlive(). Method in class Wplayer
itab(). Method in class Rules

J

jGDK(String[]). Constructor for class jGDK
Constructeur, cree les deux joueurs ainsi que la regle puis lance un Thread jGDK
jSave(). Constructor for class jSave

L

l. Variable in class Wpanel
LBoard(). Constructor for class LBoard
Constructror
Lbot(). Constructor for class Lbot
Constructor
lfixed. Variable in class Wpanel
ligne. Variable in class Login
log(String). Method in class Admin
log(String). Method in class Game
log(String). Method in class Human
log(String). Method in class jGDK
log : just print a text on the console
log(String). Method in class Mbot
Centralise le log de Mbot
log(String). Method in class Mstream
log(String). Static method in class ServM
write a msg to the log stream
log(String). Method in class SocketHub
log(String). Method in class Wplayer
loged. Variable in class Admin
loged. Variable in class Login
Login(). Constructor for class Login
logo. Variable in class LBoard
var in which I store the image
LRules(). Constructor for class LRules
constructor
lw. Variable in class LBoard
this is the width of a picture divided + 5

M

m(int, int[]). Method in class LRules
move, this method is called by move() it returns a new array for this move at this position on this board as if the paler was player 1
m(int, int[]). Method in class MRules
move
m(int, int[]). Method in class Rules
m(int, int[]). Method in class TRules
move, this method is called by move() it returns a new array for this move at this position on this board as if the paler was player 1
main(String[]). Static method in class jGDK
main(String[]). Static method in class ServM
usage: ServM
mainPort. Variable in class ServM
makeUI(). Method in class Gpanel
makeUI(). Method in class Login
makeUI(). Method in class Wpanel
MBoard(). Constructor for class MBoard
Constructror
Mbot(). Constructor for class Mbot
Constructor, DO NOT CHANGE
me. Variable in class Admin
me. Variable in class Login
minimumSize(). Method in class Board
This is just needed
mouseDown(Event, int, int). Method in class Board
catch mouse clicks and send x,y coordinates of the click in the Image defined by the user, to getClickValue.
move. Variable in class Gpanel
move. Variable in class Wplayer
move(int, int[]). Method in class Mbot
distribution des pions dans les bons bols et retourne le nouveau tableau
move(int, String). Method in class Rules
call m() depending on the player's name
MRules(). Constructor for class MRules
constructor
msg. Variable in class Gpanel
msg(int, boolean). Method in class LRules
message to send a player when he plays something if p = true that does mean it's for the player and false for the oponnent
msg(int, boolean). Method in class MRules
message to send to this player
msg(int, boolean). Method in class Rules
msg(int, boolean). Method in class TRules
message to send a player when he plays something if p = true that does mean it's for the player and false for the oponnent
MSocket. Variable in class ServM
Mstream(String). Constructor for class Mstream
Construct a new Mstream and launch the Thread for a Player
myBoardName. Variable in class Hplayer
myDim. Variable in class Gpanel
myDim. Variable in class Sbox
myDim. Variable in class Wpanel
myH. Variable in class Board
myH. Variable in class LBoard
heigth of the board
myH. Variable in class MBoard
myH. Variable in class TBoard
heigth of the board
myName. Variable in class Hplayer
myNick. Variable in class Lbot
myNick. Variable in class Mbot
myNick. Variable in class Player
myNick. Variable in class Tbot
mynick. Variable in class Wplayer
MyP. Variable in class Human
MyP. Variable in class Wplayer
MyR. Variable in class Human
MyR. Variable in class Wplayer
mysize. Variable in class Board
mySocket. Variable in class Human
mySocket. Variable in class Wplayer
myThread. Variable in class Login
myTurn(). Method in class Wplayer
myW. Variable in class Board
myW. Variable in class LBoard
width of the board (in this case width of the picture I use)
myW. Variable in class MBoard
myW. Variable in class TBoard
width of the board (in this case width of the picture I use)

N

name1. Variable in class Rules
newData(). Method in class Admin
newGame(). Method in class Game
create a newGame
newGame(). Method in class LRules
init the board
newGame(). Method in class MRules
init the board
newGame(). Method in class Rules
newGame(). Method in class TRules
init the board
nick. Variable in class Abox
nick. Variable in class Mstream
nick. Variable in class Pbox
nick. Variable in class Sbox
nick1. Variable in class Game
nick2. Variable in class Game
no. Variable in class Pbox
no. Variable in class Sbox
normalize(String, int). Method in class Wpanel
String normalizer

O

ok. Variable in class Abox
ok. Variable in class Ebox
ok. Variable in class Wbox
open(). Method in class Admin
Read jsave
owner. Variable in class Board

P

p. Variable in class Hplayer
p. Variable in class Wpanel
paint(Graphics). Method in class Board
paint() create a new Graphics on which we will draw offscreen then it displays this graphics when it's finished.
paintBoard(Graphics). Method in class Board
This method must be overwriten by the Game Board, this where you draw the board
paintBoard(Graphics). Method in class LBoard
This method must be overwriten by the Game Board, this where you draw the board
paintBoard(Graphics). Method in class MBoard
This method must be overwriten by the Game Board, this where you draw the board
paintBoard(Graphics). Method in class TBoard
this method is each time the player receive a new array representing the game Board.
panel. Variable in class Login
parent. Variable in class Abox
parent. Variable in class Pbox
parent. Variable in class Sbox
parent. Variable in class Wbox
parseG(String). Method in class Gpanel
parseS(char, String, boolean). Method in class Mstream
parse the input stream
parseS(String). Method in class Admin
Parse the stream
ParseS(String). Method in class Gpanel
parseS(String). Method in class Login
ParseS(String). Method in class Wpanel
Parse the string and do what's needed
parseS(String, Player, Player). Method in class Game
Parse the incoming String an do what's needed
part(). Method in class Human
part(). Method in class Player
part(String). Method in class Gpanel
password. Variable in class jSave
Pbox(Frame, String, boolean). Constructor for class Pbox
PH. Variable in class SocketHub
pict. Variable in class MBoard
pictName. Variable in class MBoard
picts. Variable in class TBoard
the array in which I'll store images 0 for background 1 for player's crosses 2 for opponent crosses
play. Variable in class Human
play. Variable in class Wplayer
play(int). Method in class Gpanel
play(int). Method in class Hplayer
play(int, Player). Method in class jGDK
play(int[]). Method in class Lbot
This method must return an integer for a given tab that's all
play(int[]). Method in class Mbot
play(int[]). Method in class Player
play(int[]). Method in class Tbot
This method must return an integer for a given tab that's all
player. Static variable in class Gpanel
player. Variable in class Mstream
player. Variable in class Wpanel
Player(). Constructor for class Player
Constructor1
Player(String, Socket, String). Constructor for class Player
Constructor3
Player(String, String, boolean). Constructor for class Player
Constructor2
player1. Variable in class Game
player1. Variable in class jGDK
player2. Variable in class Game
player2. Variable in class jGDK
playing(). Method in class Human
playing(). Method in class Player
playing(). Method in class Wplayer
port. Variable in class Login
preferredSize(). Method in class Board
This is just needed
prepareSecondShot(). Method in class Mbot
regarde si en jouant un ce coup il pourrait rejouer le coup suivant en essayant d'en mettre un dans le Kalaha
print(String). Method in class Admin
print(String). Method in class Gpanel
print(String). Method in class Hplayer
print(String). Method in class Wpanel

R

r(int, int[]). Method in class LRules
return true if the player can replay
r(int, int[]). Method in class MRules
return true if the player can replay
r(int, int[]). Method in class Rules
r(int, int[]). Method in class TRules
return true if the player can replay
read(). Method in class Human
Give what's in the buffer and init it
read(). Method in class Player
read(). Method in class Wplayer
rehash(). Static method in class ServM
reload jSave.dat
rejouer(int[]). Method in class Mbot
cette methode permet de tester si l'ordinateur est en mesure de jouer un coup lui permettant de rejouer, c'est a dire la methode test si le dernier pion est pose dans le kalaha en comencant par la droite, de facon a rejouer un maximum de fois
removeItem(String). Method in class Wpanel
remove a nick from the list
replay(int, String). Method in class Rules
respond(String). Method in class Pbox
result. Variable in class Login
result2. Variable in class Login
rFM. Variable in class MBoard
rFont. Variable in class MBoard
rtab(int[]). Method in class LRules
reverse the array,
rtab(int[]). Method in class Mbot
inverse le tableau de jeu, cette fonction permet de s'implifier l'implementation du programme
rtab(int[]). Method in class MRules
reverse the table
rtab(int[]). Method in class Rules
rtab(int[]). Method in class TRules
reverse the array, this is used as m(),v(),r() works only for 1 player so we reverse the array each time player2 plays
rules. Variable in class Game
rules. Variable in class jGDK
Rules(). Constructor for class Rules
run(). Method in class Admin
Reads the stream, parses the Input
run(). Method in class Game
Reads the stream, parses the Input
run(). Method in class Gpanel
run(). Method in class Human
Reads the stream, and put the result in buf until someone read it
run(). Method in class Login
run(). Method in class Mstream
Reads the stream, parses the Input
run(). Method in class ServM
wait for incoming connections and open new streams
run(). Method in class SocketHub
Reads the stream, parses the Input until the entry is valid
run(). Method in class Wpanel
run(). Method in class Wplayer

S

s. Variable in class Admin
s. Variable in class Login
save(). Method in class Admin
Save the datas
Sbox(Frame, String, boolean). Constructor for class Sbox
score. Variable in class Human
score. Variable in class Wplayer
select(int). Method in class LBoard
show selected logos
selected. Variable in class LBoard
selected number
send(String). Method in class Human
Print a string to the socket
send(String). Method in class Player
send(String). Method in class Wpanel
send(String). Method in class Wplayer
server. Variable in class ServM
ServM(int). Constructor for class ServM
Construct a new Server and launch the Thread
setAsk(String). Method in class Human
setAsk(String). Method in class Player
setAsker(String). Method in class Human
setAsker(String). Method in class Player
setGame(String). Method in class Human
setGame(String). Method in class Player
setName(String, String). Method in class Hplayer
setName1(String). Method in class Rules
set the name of the player1
setOwner(jGDK). Method in class Hplayer
setPlay(String). Method in class Human
setPlay(String). Method in class Player
setPlay(String). Method in class Wplayer
setScore(int). Method in class Human
setScore(int). Method in class Player
setScore(int). Method in class Wplayer
setTurn(boolean). Method in class Hplayer
setTurn(boolean). Method in class Human
setTurn(boolean). Method in class Player
setTurn(boolean). Method in class Wplayer
setTurn(boolean, int[]). Method in class Hplayer
setVars(Gpanel, int[], int, int, boolean). Method in class Board
this is called by game boards to be sure all the vars are set right in the super class
SH. Variable in class SocketHub
sin. Variable in class Admin
sin. Variable in class Login
SocketHub(Socket). Constructor for class SocketHub
Construct a new SocketHub and launch the Thread
sout. Variable in class Admin
sout. Variable in class Login
start(). Method in class Login
startGame(Player, String, String). Method in class Mstream
startGame(String, String, String). Method in class Wpanel
Start Game
status. Variable in class Gpanel
status. Variable in class Wpanel
stop. Variable in class Gpanel
stop(). Method in class Login
strat(). Method in class Lbot
This is the method that call all the startegy do what u want with it
strat(). Method in class Mbot
cette methode choisie le meilleur coup a jouer et retourne le bol a jouer sout forme d'entier
strat(). Method in class Tbot
This is the method that call all the startegy do what u want with it
sURL. Static variable in class Login

T

tab. Variable in class Board
tab. Variable in class Gpanel
tab. Variable in class LBoard
tab. Variable in class Lbot
tab. Variable in class LRules
tab. Variable in class MBoard
tab. Variable in class Mbot
tab. Variable in class MRules
initialisation des variables
tab. Variable in class Rules
tab. Variable in class TBoard
Array that gives the start board
tab. Variable in class Tbot
tab. Variable in class TRules
tab is where the game is saved, this array represent player1's board where 0 values are unchecked squares , 1 player1's crosses and 2 for player 2.
tabX. Variable in class LBoard
in which I store x and y positions of images
tabY. Variable in class LBoard
TBoard(). Constructor for class TBoard
Constructror
Tbot(). Constructor for class Tbot
Constructor
terminer(). Method in class Mbot
le methode terminer est appelee si l'ordinateur a 24 pions dans son kalaha et est donc en position de remporter la partie
tH. Variable in class Board
tH(). Method in class Board
This method calcul the position where to draw the Board (top corner)
TRules(). Constructor for class TRules
constructor
turn. Variable in class Gpanel
turn. Variable in class Human
turn. Variable in class jGDK
turn1. Variable in class Game
tW. Variable in class Board
tW(). Method in class Board
This method calcul the position where to draw the Board (left corner)

U

uFM. Variable in class Wpanel
uformat(String, String, String, String). Method in class Wpanel
UserList string formater
uli(). Method in class Mstream
uli(String). Method in class Wpanel
UserList creator
uliF. Variable in class Wpanel
ulist. Variable in class Wpanel
update(Graphics). Method in class Board
This overwrite the Component update(Graphics g) method that normally clean up the Canvas making it flicker
updUser(String). Method in class Wpanel
User Update
userl. Variable in class Wpanel
users. Static variable in class ServM
users handle the uselist by binding a nick name to a Human()

V

v(int, int[]). Method in class LRules
return true if this move is valid
v(int, int[]). Method in class MRules
is this move valid?
v(int, int[]). Method in class Rules
v(int, int[]). Method in class TRules
return true if this move is valid
validNick(String, String). Method in class SocketHub
Check if the nick is valid and add it in the userlist
verif(int, String). Method in class Rules

W

w(int[]). Method in class LRules
win, loose , tie return 0 if not finished 1 if this player win 2 if the opponent win -1 if it's a tie
w(int[]). Method in class MRules
win, loose , tie
w(int[]). Method in class Rules
w(int[]). Method in class TRules
win, loose , tie return 0 if not finished 1 if this player win 2 if the opponent win -1 if it's a tie
waitcount. Variable in class Game
waiting. Variable in class Game
Wbox(Frame, String, boolean). Constructor for class Wbox
win(String). Method in class Rules
Wpanel(Wplayer). Constructor for class Wpanel
Wplayer(String, Socket, String). Constructor for class Wplayer

Y

yes. Variable in class Pbox
yes. Variable in class Sbox