|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.gameview.GameViewSeat
public class GameViewSeat
Field Summary | |
---|---|
java.awt.Point |
centerOfSeat
|
Method Summary | |
---|---|
void |
bounds(int x,
int y,
double xratio,
double yratio)
Method that places and resizes everything that is located near seat: smallcards, dealerbutton, reservedbutton, cards, timer, playerseat, distributed betchips, bet text. |
void |
chipDraw(double xratio,
double yratio)
draw bet distribution for this seat. |
void |
drawTimer(double currenttimer,
double maxtimer)
Draws timer with ratio of current/max |
void |
enableCard(int i,
boolean b)
Sets given cards as enabled or not-enabled. |
void |
enableCards(boolean b)
|
int |
getCardCount()
Gives amount of cards we created seat/game |
java.awt.Point |
getCenter()
Gives center of seat, |
int |
getSeatNro()
Returns seat number of this seat. |
void |
hideAll()
Hide all graphic components except reserved and dealer buttons. |
void |
hideCards()
hides all card components. |
boolean |
isCardsKnown()
returns as boolean if cards are set as known. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setAvailable(boolean visible,
PokerGameController tgc)
Draw available seats if visible and attach gamecontroller to pass messages. |
void |
setBet(boolean visible,
double amount,
double xratio,
double yratio)
Updates bettext. |
void |
setcards(boolean ingame)
Clear visible cards from this seat. |
void |
setCards(boolean enabled,
java.lang.String[] s,
double xratio,
double yratio)
sets visible cards for this player, parameters decide how they are shown. |
void |
setCardsDisable()
sets all cards disabled. |
void |
setCardsKnown(boolean b)
marks cards as known/unknown so that gamemodel doesnt overwrite known cards. |
void |
setDealer(boolean b)
Draw dealer button true/false near this seat. |
void |
setGameViewAccountName(java.lang.String s)
|
void |
setReserved(boolean b)
Show this seat as reserved seat true/false |
void |
setSeat(boolean enabled,
java.lang.String accountname_,
java.lang.String name_,
double bank_,
java.lang.String action_)
sets playerinfo to this seat |
void |
setTimerVisible(boolean b)
hides timerbar |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.awt.Point centerOfSeat
Method Detail |
---|
public void setCardsKnown(boolean b)
b
- public boolean isCardsKnown()
public void setGameViewAccountName(java.lang.String s)
public void setCardsDisable()
public int getCardCount()
public void enableCard(int i, boolean b)
i
- given card numberb
- toggle true/false to enabledpublic void enableCards(boolean b)
public void bounds(int x, int y, double xratio, double yratio)
x
- width of playareay
- height of playareaxratio
- width ratio of pictures and seat.yratio
- height ratio of picutres and seat.public int getSeatNro()
public void chipDraw(double xratio, double yratio)
xratio
- yratio
- public void setBet(boolean visible, double amount, double xratio, double yratio)
visible
- visible switchamount
- amount of betpublic void setDealer(boolean b)
public void setReserved(boolean b)
public void setAvailable(boolean visible, PokerGameController tgc)
visible
- - Toggle if seat is availabletgc
- - Gamecontroller that forwards message if player wants to sit.public void setTimerVisible(boolean b)
public void drawTimer(double currenttimer, double maxtimer)
currenttimer
- maxtimer
- public void hideAll()
public void hideCards()
public void setcards(boolean ingame)
public void setCards(boolean enabled, java.lang.String[] s, double xratio, double yratio)
enabled
- if cards are not enabled draw them as gray.s
- - all cards that this seat has given as string.public void setSeat(boolean enabled, java.lang.String accountname_, java.lang.String name_, double bank_, java.lang.String action_)
enabled
- - folded/sitdown shows background as darker shade of grayaccountname_
- - player's accountnamename_
- bank_
- - players bankaccountaction_
- - playesr latest actionpublic java.awt.Point getCenter()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |