A B C D E F G H I J L M N P R S T U V W

A

actionPerformed(ActionEvent) - Method in class Interface.Listener
 
addme2team(String) - Method in class Player
This method is to a player's name to a team.

B

bestbet - Variable in class Game
 
bestBet - Variable in class Player
 
bestbetby - Variable in class Game
 
bestBetBy - Variable in class Player
 
betfinished - Variable in class Game
 
betFinished - Variable in class Player
 
bets - Variable in class Game
 
bg_lbl - Variable in class Interface
 

C

Card - Class in <Unnamed>
This Card class represents playing card.
Card(Card.Suit, Card.Rank) - Constructor for class Card
constructor of this card class, receives card suit and rank to create a card object
Card(String, String) - Constructor for class Card
constructor of this card class, receives card suit and rank strings to create a card object
Card(String) - Constructor for class Card
constructor of this card class, receives card suit and rank as a single strings to create a card object
Card.Rank - Enum in <Unnamed>
Rank enum to name the card.
Card.Rank(int) - Constructor for enum Card.Rank
initiates the Rank enum to relate the point with enum values.
Card.Suit - Enum in <Unnamed>
Suit enum to catogorise the card into main four types.
Card.Suit() - Constructor for enum Card.Suit
 
card_btns - Variable in class Interface
 
Cards304Client - Class in <Unnamed>
This Cards304Client class represents the client actoins of this network based 304 card game.
Cards304Client() - Constructor for class Cards304Client
Constructer class of Cards304Client class.
Cards304Client.IncomingReader - Class in <Unnamed>
This IncomingReader class is to run a thread and listen to the server messages.
Cards304Client.IncomingReader() - Constructor for class Cards304Client.IncomingReader
 
Cards304Server - Class in <Unnamed>
This Cards304Server class represents the server actoins of this network based 304 card game.
Cards304Server() - Constructor for class Cards304Server
Constructor method of this Cards304Server class.
Cards304Server.ClientHandler - Class in <Unnamed>
This ClientHandler class is to run Thread and listen to client messages.
Cards304Server.ClientHandler(Socket) - Constructor for class Cards304Server.ClientHandler
This function is to create client network stream reader.
cards4player - Variable in class Game
 
checkBestBet() - Method in class Game
this methos is to check the best bet and to sent a message to the clients.
cleanUp() - Method in class Cards304Client
This method is to terminate the connection with server.
clearTrump() - Method in class Interface
ClearTrump method is to clear the image in the trump table button and show.
client - Variable in class Player
 
clientOutputStreams - Variable in class Cards304Server
 
close() - Method in class Interface
This method is to close the window
connectionEstablished - Variable in class Cards304Client
 
create_game_pnl() - Method in class Interface
This method is to create game panel user interface.
create_welcome_pnl() - Method in class Interface
This method creates the JPanel of welcome screen.

D

deal(List<Card>, int) - Static method in class Game
This method is to divide the shuffeled cards into 4 players.

E

enemyOf(int) - Method in class Game
This method is to find an openent of a player.
enemyOf(int) - Method in class Player
This method is to find an openent of a player.
enter_game_btn - Variable in class Interface
 
exitGame() - Method in class Player
This method will be triggerd from the server when someone closes his/her game window.

F

finalize() - Method in class Cards304Client
This method will be called when this game exists.
finalize() - Method in class Game
This method finializes the game functionalities.
finalize() - Method in class Player
This method finalizes the game.
finishPlay() - Method in class Game
This method is to finish the current player and set the winner.

G

Game - Class in <Unnamed>
This Game class represents all the server side game functionalites of this 304 cards game.
Game(Cards304Server, int) - Constructor for class Game
Constructor of this class, get the server object and gameId.
game_pnl - Variable in class Interface
 
game_status_first_line_lbl - Variable in class Interface
 
game_status_second_line_lbl - Variable in class Interface
 
gameId - Variable in class Cards304Server
 
gameId - Variable in class Game
 
gameId - Variable in class Player
 
games - Variable in class Cards304Server
 
getGameId() - Method in class Cards304Server
This method returns gameId
getGameId() - Method in class Player
This method is to get the game id from this class.
getImageName() - Method in class Card
returns the image name of a card which is saved in /resources/images/
getPlayerId() - Method in class Cards304Server
This method returns playerID
getPlayerId() - Method in class Player
This method is to get the player id.
go() - Method in class Cards304Client
This method is to setup the network connection with Cards304Server.
go() - Method in class Cards304Server
This method is to setup the network connection with Card304Client class.
gui - Variable in class Player
 

H

hand - Variable in class Player
 
handCards - Variable in class Player
 
handCardSelected(int) - Method in class Player
This method is triggerd when any of those hand card are selected.
hideButtons() - Method in class Interface
This method is to hide bet buttons.

I

illbet() - Method in class Player
This method is to accept the bet from the player.
initialize() - Method in class Interface
This method initilizes the user interface with all the swing components.
Interface - Class in <Unnamed>
This class represents the interface of this 304 cards game.
Interface(Player) - Constructor for class Interface
Constructor method of this Interface class.
Interface.Listener - Class in <Unnamed>
This Listener class extends WindowAdaptor and implements ActionListener.
Interface.Listener() - Constructor for class Interface.Listener
 
isNumeric(String) - Method in class Player
This method is to check whether a string value can be converted to numeric or not.
isRoundFinished() - Method in class Game
This method is to check whether a round finished or not.
isTrumpOpen() - Method in class Player
This method checks and return whether the trump is open or not.

J

jframe - Variable in class Interface
 
jpanel - Variable in class Interface
 

L

lastRoundWinner - Variable in class Game
 
listener - Variable in class Interface
 

M

main(String[]) - Static method in class Cards304Client
 
main(String[]) - Static method in class Cards304Server
 
myBet - Variable in class Player
 
myTurn() - Method in class Player
This method enables the user interface to the player to select a card when the player's turn comes.

N

name_lbl - Variable in class Interface
 
name_txtfld - Variable in class Interface
 
newDeck() - Static method in class Card
Returns a deck of cards as Arraylist.
newPlay() - Method in class Game
This method restores the default values to all those variables in this class and starts a new play
newPlay(int, int, int, int, int) - Method in class Player
This method is called when a play finishes.
noOfCards() - Method in class Player
This method is to count the no of cards in the hand and returns by checking the hand boolean array.
noOfRounds - Variable in class Game
 

P

partnerOf(int) - Method in class Game
This method is to find the partner of a player.
partnerOf(int) - Method in class Player
This method is to find the partner of a player.
player - Variable in class Cards304Client
 
player - Variable in class Interface
 
Player - Class in <Unnamed>
This Player class represents all the client side game functionalites or player side game functionalities of this 304 cards game.
Player(Cards304Client) - Constructor for class Player
Constucter method of this class.
playerId - Variable in class Cards304Server
 
playerId - Variable in class Player
 
playerPoints - Variable in class Game
 
playerPoints - Variable in class Player
 
points - Variable in enum Card.Rank
 
points() - Method in enum Card.Rank
returns the point value of a perticular card rank.
printCards() - Method in class Player
This method prints the name of cards in the hand.
protoDeck - Static variable in class Card
 

R

rank - Variable in class Card
 
rank() - Method in class Card
returns rank of the card as Rank enum object.
rank2string(Card.Rank) - Method in class Card
This method is to convert a Rank object to its name as String
reader - Variable in class Cards304Client
 
reader - Variable in class Cards304Server.ClientHandler
 
readerThread - Variable in class Cards304Client
 
resetTable() - Method in class Game
This method is to reset the Table array and this method check whether 8 rounds finished or not, if 8 rounds finished, finishes the game and sets the winning results.
resetTable() - Method in class Player
This method is to reset the tableCards array.
RESOURCE_IMAGES_PATH - Variable in class Interface
 
roundStartsWith - Variable in class Game
 
run() - Method in class Cards304Client.IncomingReader
 
run - Variable in class Cards304Server.ClientHandler
 
run() - Method in class Cards304Server.ClientHandler
 

S

scoreBoardCheck() - Method in class Player
This method checks the score and updates teh scoreboard.
select_trump_btn - Variable in class Interface
 
selectedConfirmed(int, String) - Method in class Player
this method is to confirm player's selection.
selectTrump - Variable in class Player
 
selectTurn() - Method in class Game
This method is to select a turn according to the game logics.
send(String) - Method in class Cards304Client
This method sends message to server.
serve_rest_btn - Variable in class Interface
 
servetherest() - Method in class Player
This method is to server the final four cards to hand.
setAllHandCardsEnabled(Boolean) - Method in class Interface
This method set all the hand cards enabled or disabled depends on the state boolean.
setBestBet(int, int) - Method in class Player
This method is to set the best bet.
setBet(int, int) - Method in class Game
This method is to set a bet to its player and this function will be called from the server.
setFirstLine(String) - Method in class Interface
This method set the message on the game window header.
setGameId(int) - Method in class Player
This method sets the game id to this class object.
setHandCard(JButton, Card) - Method in class Interface
This method sets an image to a hand betton and returns it.
setHandCards(ArrayList<Card>) - Method in class Player
setHandcards method is to set the cards to handCards arraylist and serves first four cards to players, in order to enable them to choose a trump.
setHandCards(String) - Method in class Player
This method is to set the cards to handCards arralylist from a single String separated my coma.
setHandCardsEnabled(Boolean, int, int) - Method in class Interface
This method set the Hand cards enabled or disabled in a range.
setInitialHandCards(ArrayList<Card>) - Method in class Interface
This method sets initially first four card in the hands Other four cards out of eight will be blank.
setPlayerId(int) - Method in class Player
This method is to set player id to this player class object.
setplayername(int, String) - Method in class Player
This method sets a player's name to team string array in the right player position.
setPoints() - Method in class Game
This method is to sent the point to playerPoints array.
setSecondLine(String) - Method in class Interface
This method set the message on the game window header.
setSelectedCard(int, String) - Method in class Game
This method is to set the selected card in client to a table card array.
setTableCard(JButton, Card) - Method in class Interface
This method is to set card image to a table button
setTableCards(Card[]) - Method in class Interface
This method is to set the cards to the table from cards array.
setTableLabel(int, String) - Method in class Interface
Sets the table lable.
setTheRestHandCards(ArrayList<Card>) - Method in class Interface
This method sets rest four card in the hands
setTrump(String) - Method in class Game
This method sets the trump card and this method will be called from server.
setTrumpEnabled(boolean) - Method in class Interface
This method is to enable and disable the trump card table button.
setTrumpTurn(boolean) - Method in class Player
This method is to set the trump turn.
setUpNetworking() - Method in class Cards304Client
This method is to create a socket and create a network connection with the server.
showButtons() - Method in class Interface
This method is to show the bet buttons.
showgamepnl() - Method in class Interface
This method is to show the game panel
showinputmsg(String) - Method in class Interface
This method is to show a input box with a message and to get some input.
showmsg(String) - Method in class Interface
This method is to show a message to a user.
shuffleAndServe() - Method in class Game
This method is to get a new deack of cards from cards class and suffle it and then to server it to the clients.
sock - Variable in class Cards304Client
 
sock - Variable in class Cards304Server.ClientHandler
 
srv - Variable in class Game
 
string2rank(String) - Method in class Card
This method is to convert a String rank name to a real Rank object.
string2suit(String) - Method in class Card
This method is to convert a String suit name to a real Suit object.
suit - Variable in class Card
 
suit() - Method in class Card
returns suit of the card as Suit enum object.
suit2string(Card.Suit) - Method in class Card
This method is to convert a Suit object to its name as String

T

table - Variable in class Game
 
table - Variable in class Player
 
table_btns - Variable in class Interface
 
table_lbl - Variable in class Interface
 
tableCards - Variable in class Player
 
takeAction(String) - Method in class Cards304Client
This method is to take action for server messages.
takeAction(String) - Method in class Cards304Server
This method is to take action for all the client messages.
team - Variable in class Player
 
tellEveryone(String) - Method in class Cards304Server
This methos is to brodcast a message to every clients.
thisTurnPlayer - Variable in class Game
 
toString() - Method in class Card
returns a String value of a card.
trump - Variable in class Game
 
trump - Variable in class Player
 
trump() - Method in class Player
This method is to ger the trump card.
trumpClicked() - Method in class Player
This methed is triggerd when user clicks the tump button in the table.
trumpConfirmed() - Method in class Player
This method is called when server confirms the trump.
trumpOpen - Variable in class Game
 
trumpOpen - Variable in class Player
 
trumpTrun - Variable in class Player
 
trumpUsed() - Method in class Player
This method is to check whether the trump is used or not.

U

updateHand(Boolean[]) - Method in class Interface
This method updates the visibility state of a hand button by checking the hand Boolean array.
updatePoints(int, int, int, int) - Method in class Player
This method is to update the points.
updateTable(Boolean[]) - Method in class Interface
This method updates the visibility state of a table button by checking the table Boolean array.

V

valueOf(String) - Static method in enum Card.Rank
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum Card.Suit
Returns the enum constant of this type with the specified name.
values() - Static method in enum Card.Rank
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum Card.Suit
Returns an array containing the constants of this enum type, in the order they are declared.

W

welcome_pnl - Variable in class Interface
 
WIN_HEIGHT - Variable in class Interface
 
WIN_WIDTH - Variable in class Interface
 
WIN_X - Variable in class Interface
 
WIN_Y - Variable in class Interface
 
windowClosing(WindowEvent) - Method in class Interface.Listener
 
wins - Variable in class Game
 
wins - Variable in class Player
 
writer - Variable in class Cards304Client
 

A B C D E F G H I J L M N P R S T U V W